Accessing a Virtual Ubuntu Server via RDP.. Really

Accessing a Virtual Ubuntu Server via RDP.. Really

Product Line:  VERDE

You probably didn't think it was possible, but, you can access a Virtual Ubuntu server via RDP.  Here's how you have to setup your server:

You'll need to access your Virtual Ubuntu server via SSH/Putty:

When using the SSH command, you’ll need to enter it into a bash shell on your local machine. This could be the “Ubuntu Bash Shell” on Windows 10, or a Terminal window on macOS.
  1. When prompted, enter the Username and Password what was specified for the Admin user when the Ubuntu Linux VM was created previously.
    Also, you’ll likely be prompted with an “Are you sure you want to continue connecting (yes/no)?” message. The reason for this is that your local machine hasn’t seen the key fingerprint from that Linux machine yet. For the sake of the exercise, type yes and press Enter to continue. Once you enter “yes”, you’ll need to enter the SSH command again to initiate the connection.
  2. Next, you’ll need to install a Desktop graphical UI (User Interface) before you’ll be able to setup RDP support. To do this, you can run the following command to install lxde on the Linux VM:
    sudo apt-get install lxde -y

    If you’re interested in using the Ubuntu Desktop UI instead, you can use the great tips from Sorcia25 here:

  3. Next, you’re ready to install RDP support by installing the xrdp project on the VM. You can do this with the following command:
    sudo apt-get install xrdp -y
  4. Next, you need to start xrdp running on the VM. This can be done with the following command:
    /etc/init.d/xrdp start

Connect to Linux VM with Remote Desktop Client

Once RDP support is installed and enabled on a Linux VM, you can now connect to it and remote into the machine using Microsoft Remote Desktop (RDP). You can do this from the Remote Desktop application on Windows, or macOS.

Here’s a screenshot of setting up the connection information using the Microsoft Remote Desktop application on macOS. Note that you need to enter the Public IP Address of the Linux VM in Azure, and the Username and Password that were used to create the VM (or any other username and password that is currently configured on the VM).

And, here’s the final screenshot of what the RDP screen looks like for the Ubuntu Server Linux VM in Azure with both xrdp and lxde installed. This screenshot was taken from macOS using Remote Desktop to connect to the Linux VM running in Azure, and the screen shows the Firefox web browser running on the Linux VM along with a Terminal window running the Bash shell.