Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Here are the steps to install xrdp on ubuntu 12.04 and get it working:

However, I want a secure xrdp connection over ssh and I am able to achieve it by using port forwarding in the software putty as below:

L1234 ==> localhost:3389

But I am still able to remote login to the ubuntu through xrdp connection when I am not connected using SSH.

It is supposed to deny remote login when SSH is not present.

In the file


I tried to change the [global] section by adding "ip=" and it didn't work.

share|improve this question

I think that the xrdp.ini parameter that controls the listening interface IP is called 'address' not 'ip' i.e. in the globals section:


At least, this works for me - however note that I am using a source-built xrdp from so I can't guarantee it is supported in the default packaged version.

The closure of the port can be confirmed by running netstat on the remote host, or using nmap i.e. before adding 'address=' to the [globals] section:

$ sudo nmap -p 3389

Starting Nmap 5.21 ( ) at 2013-08-05 02:08 UTC
Nmap scan report for
Host is up (0.0065s latency).
3389/tcp open  ms-term-serv

After adding the 'address' parameter and restarting the service

$ sudo nmap -p 3389

Starting Nmap 5.21 ( ) at 2013-08-05 02:10 UTC
Nmap scan report for
Host is up (0.030s latency).
3389/tcp closed ms-term-serv

Also note that at least in Windows 7, the native Remote Desktop Connection client appears to have trouble if the remote server is tunneled to localhost:3389 (the default xrdp port), I ended up setting my putty tunnel as

L33389    localhost:3389

and then specifying localhost:33389 in the Remote Desktop Connection dialog (although any suitably high numbered free port should work as well)

share|improve this answer

I having problems getting connected from Windows 7 by using remote login. I've found a good site that explains a lot.

share|improve this answer
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. – gertvdijk Feb 6 '13 at 0:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.