Jump to content

Secure Linux Access Using Azure Virtual Desktop


Recommended Posts

Guest John_Kelbley
Posted

I've heard time and time again that Azure Virtual Desktop does not support Linux VMs in Azure. I think that's really semantics, based on the realities of and complexities of Linux (so many distros / kernel version / management tools / access methods). While Azure Virtual Desktop does not itself provision or manage Linux VMs, it does a wonderful job of supporting secure access to those Linux VMs through publishing access tools for Linux on Windows!

 

 

 

I know that many developers and testers love using the Windows Subsystem for Linux (WSL) on Windows VMs via AVD, but that can be complex to install, and usually means users leverage personal (expensive!) VMs to support one-to-one installs.

 

 

 

Azure Virtual Desktop lets you publish access tools via RemoteApp for users to connect to shared Linux VMs, saving money by centralizing compute, as well as wrapping the security benefits of Azure Active Directory / MFA / Conditional Access around your Linux VMs!

 

 

 

A deployment pattern growing in popularity is to publish access to Linux resources via AVD. The AAD requirement for AVD is a perfect security wrapper for many dev and test Linux deployments, since it creates a security wrapper for those environments which might otherwise be challenging to implement (example: where devs want to manage passwords on their own Linux machines!).

 

 

 

The common emerging patterns (outside of WSL) I have seen for secure Linux access using AVD include:

 

  • Leveraging AVD RemoteApp using:
  • Telnet (PuTTY, MobaXterm, other)
  • Xrdp access either with MSTC or MobaXterm
  • X11 access using X2go

 

AVD lets you publish either individual applications (Remote Apps) or the full Windows desktop experience:

 

mediumvv2px400.jpg.fd926e2541464ad342a142673ff7d59d.jpg

 

 

PuTTY – Easy (if you don’t need GUI!)

 

 

PuTTY is well known to your Linux users (I’ll bet, and super easy to install / publish via RemoteApp!).

 

Once it’s deployed, just share the IP address(es) of the hosts your users need access to, and they can setup the “saved sessions”:

 

mediumvv2px400.png.3723eef86a0541851fb4e783a6c23eb8.png

 

 

mediumvv2px400.png.95c49ab1e77bd9b3641fad507b76e3c2.png

 

 

 

Xrdp with MSTSC

 

 

Let's look at that Ubuntu Icon in the Remote Desktop application.

 

While it is implemented as a Remote Application (our old friend MSTSC) it publishes a full Ubuntu desktop:

 

mediumvv2px400.jpg.a6b45014642d3c5202cc7af950afd80a.jpg

 

 

 

When the user clicks on it, they get the familiar connection dialog:

 

mediumvv2px400.jpg.54dd6d4e0275627bc5746eb5ad23fcb4.jpg

 

...and maybe that secondary authentication prompt for Windows

(again, this can be eliminated if you implement single sign on:)

 

mediumvv2px400.jpg.41785875b48da0228f5c0e34a978b943.jpg

 

 

 

BUT THEN they get to their Linux desktop:

 

mediumvv2px400.jpg.03a8f0451fcf3a7ceec48fc5da4181d9.jpg

 

 

 

In this case, it's an xrdp login prompt for a local credential stored in etc/passwd (could also be PAM integrated).

 

 

 

Once they log in - they have their desktop:

 

largevv2px999.png.8ec1e52320f269229fa184de462eb284.png

 

 

 

 

 

The secret sauce here is RemoteApp publishing! All I'm doing is using MSTSC (built in RDP client in Windows published from AVD as a RemoteApp, with a few updates to the defaults:

 

largevv2px999.png.68f15ace56d2b322a24dd93fd565fba1.png

 

 

 

It’s pretty easy to setup in Azure – happy to walk you through it if you like.

 

THE FINE PRINT: You may have to grant users Local Admin rights on the VM where you publish MSTSC to the Linux box (one downside of using Xrdp...beyond having to load the protocol on your Linux hosts).

 

 

X-Windows Access (likely the preferred method if you want a GUI)

 

 

You can do something similar with MobaXTerm or X2Go (and not mess around with XRDP!).

 

This may actually be my PREFFERED method so that the xRDP package is not required in the Linux VMs.

 

 

 

I do like X2Go published via RemoteApp – super simple user interface:

 

mediumvv2px400.png.beffe788c3793a808f656df33b266e4e.png

 

 

 

 

 

mediumvv2px400.png.c312c98f3bd388256bb1e598cc306f91.png

 

…and then I’m into my full Linux Desktop (in this case, a Linux Data Science VM in Azure):

 

largevv2px999.png.8fee62a6416cfc0bf123a2df6552889f.png

 

 

 

Oh, and I'm in no way trying to slight MobaXterm here by not showing a picture of it... it's a great, multi-protocol access tool!

 

Continue reading...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...