I have an Ubuntu virtual machine to which I need to do remote desktop. I do not have physical access to that machine and I can do only ssh to the machine. I wanted to do remote desktop and came up with lot of options (vnc, xrdp, opennx). I used xrdp and I installed the necessary packages in the ubuntu machine (xrdp and dependent). Then I enabled the remote access in the ubuntu using the following command line option.
gconftool-2 -s -t bool /desktop/gnome/remote_access/enabled true
gconftool-2 -s -t bool /desktop/gnome/remote_access/prompt_enabled false
Then I restarted the xrdp (/etc/init.d/xrdp start). But when I try to do rdp using the windows client (mstsc), I get the following error. Remote access to the server is not enabled.
How do I solve this? Kindly help.
Raj
Best Answer
On file /etc/xrdp/xrdp.ini add address=0.0.0.0 which is the default xrdp address.
Also you have to permit firewall to listen to connections on port 3389 that xrdp is working on. For this execute:
If that doesn't work either:
sudo ufw disable
) on server pc and then recheck (might even need another restart).In case you missed it, i will list the entire procedure below (which was a pain to assemble). You'll be fine with that if you follow step by step (promise!).
Remote Desktop between any OS's Step-By-Step guide
I. Windows to / from Windows:
Use Windows Remote Desktop software
II. Linux / Unix to / from anywhere
First do the following on the server computer that you will connect via remote desktop:
IIa. Windows to Linux from terminal with graphics support
IIb. (b for better) Windows to Linux with full GUI support. This is what most of you will want.
III. *nix to / from *nix
IV. Making the connection secure (optional step - applies to any configuration)
VNC & xrdp protocols are not secure which means that they are not encrypted.
To make the connection secure edit the /etc/xrdp/xrdp.ini file so that the address becomes 127.0.0.1. This will be the localhost address of the ssh server. SSH encryption will be used underneath to tunnel the vnc traffic.
If the above don't work:
sudo ufw disable
) on server pc and then recheck (might even need another restart).Sources and credit: