Connecting to Ubuntu VM on Azure using Remote Desktop Connection

Posted on

In order to connect to your Ubuntu VM from a Windows first we have to enable the XRDP in the Ubuntu in order enable the Remote Desktop Connection.

So to enable XRDP we should connect to the server, PUTTY is a the commonly used client for SSH. (SSH is enabled by default in the Ubuntu VM on Azure). Download PUTTY from here and follow the steps in this article to connect to the Ubuntu server.

Once connected with username (azureuser) and password execute the following shell command to enable XRDP on the server

sudo apt-get install xrdp

After executing the command go to Microsoft Azure management portal and Add the Remote Desktop Connection endpoint for the server. Once you’ve added this endpoint you can see the connect icon is back to live (earlier it was grayed out) click on the connect icon and download the RDP file for the Remote Desktop Connection.

Now you can connect to your Ubuntu VM from Windows.

Note still your Ubuntu environment has the shell, if you want to enable the interactive desktop execute the following commands in the connection you made.

First I executed this.

sudo apt-get install ubuntu-desktop 

But things there was message saying to run the update, so I executed the update with this command and executed the install command again, everything was fine and smooth.

sudo apt-get update 

Close the connection and connect again, (logoff and reconnect) you will be welcomed with the Ubuntu desktop experience.

image

For this demonstration I used Ubuntu Server 12.04 LTS

Advertisements

2 thoughts on “Connecting to Ubuntu VM on Azure using Remote Desktop Connection

    Anonymous said:
    March 17, 2016 at 7:54 AM

    I follow the article step by step, finally, I can remote connect to the ubuntu VM on Azure, but the desktop is blank in gray, nothing to show. I tried servel times, the same. I also tried to follow https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-linux-remote-desktop/ this article. The same issue

      Thuru responded:
      March 22, 2016 at 10:09 PM

      What is the VM image you are using ?

Comments are closed.