first_page

Connecting to my Ubuntu VM on Azure

There are at least four (Windows) ways to connect to a Linux VM on Azure (today).

  • PuTTY and WinSCP (over SSH)
  • Windows Remote Desktop (to xrdp)
  • Windows File Manager (to samba)
  • (probably) Windows 10 Bash shell (with ssh)

PuTTY and WinSCP (over SSH)

I may have to come back and update these notes but I’m almost certain that Azure sets up VMs with SSH by default. So use of PuTTY and WinSCP is straightforward. (I did notice that the default, 15-second timeout of WinSCP was too fast for Azure so I had to change that—under Connection > Timeouts > Server response timeout with Advanced options checked.)

Windows Remote Desktop (to xrdp)

For this, I followed the instructions from “How to use xRDP for remote access to Ubuntu 14.04” or “Running a Remote Desktop on a Windows Azure Linux VM.” I was unable to connect using Remote Desktop. I noticed that, according to service –status-all, xrdp was not running—even after commanding it to run.

I also noticed that the Azure Portal could no longer restart or detect updates from my Linux VM. After reading “How to update the Azure Linux Agent on a VM to the latest version from Github,” I got walinuxagent restarted and fixed the problem.

Windows File Manager (to samba)

The instructions in “How to Share Files Between Windows and Linux” did not work with Azure until I read “Firewall Settings for Personal File Sharing” and added Inbound security rules to the Azure Resource Group associated with the VM.

Windows 10 Bash shell (with ssh)

How To Use SSH to Connect to a Remote Server in Ubuntu” should work natively on Windows 10, according to recent news, providing an experience similar to using PuTTY.

https://github.com/BryanWilhite/