Connect to a lab VM

In this article, you learn how to connect to a lab virtual machine (VM) in Azure Lab Services. Depending on the operating system (OS) and your local machine, you can use different mechanisms, such as secure shell (SSH) or remote desktop (RDP), to connect to your VM.

To connect to a lab VM, the VM must be running. Learn more about how to start and stop a lab VM.

Connect to a Windows lab VM

Follow these instructions to connect to a Windows-based lab VM. Choose the instructions that match your local machine's operating system.

Client OS Instructions
Windows Connect to a VM using RDP on Windows.
Mac Connect to a VM using RDP on a Mac.
Chromebook Connect to a VM using RDP on a Chromebook.

Connect to a Linux lab VM

To connect to a Linux-based lab VM, you can use the secure shell protocol (SSH), remote desktop protocol (RDP), or X2Go.

Azure Lab Services automatically configures SSH for Linux VMs. Both lab users and lab creators can SSH into Linux VMs without additional setup. If you want to connect to a VM with a Linux GUI, the lab creator might need to do extra setup on the template VM.

Warning

If you need to use GNOME or MATE you should coordinate with the lab creator to ensure that your lab VM has the correct configuration. For details, see Using GNOME or MATE graphical desktops.

Connect to a Linux lab VM using RDP

Before you can connect to a Linux VM using RDP, the lab creator first needs to enable remote desktop connection for Linux VMs.

To connect to a Linux VM using RDP, follow the instructions based on the type of OS you're using.

Client OS Instructions
Windows Connect to a VM using RDP on Windows.
Mac Connect to a VM using RDP on a Mac.
Chromebook Connect to a VM using RDP on a Chromebook.

Connect to a Linux lab VM Using X2Go

Linux VMs can have X2Go enabled and a graphical desktop installed. For more information, see X2Go Setup and Using GNOME or MATE graphical desktops.

For instructions to connect to a Linux VM using X2Go, see Connect to a VM using X2Go.

Connect to a Linux lab VM using SSH

By default Linux VMs have SSH installed. To connect to a Linux VM using SSH:

  1. If you're using a Windows machine to connect to the lab VM, ensure you have SSH client software on your machine.

    The latest version of Windows 10 and Windows 11 include a built-in SSH client. Learn how you can use the access the built-in SSH client.

    Alternately, you can download an SSH client, such as PuTTY or enable OpenSSH in Windows.

  2. If the lab VM is not running, go to the Azure Lab Services website, and then start the lab VM.

  3. Once the VM is running, select the Connect icon > Connect via SSH, to get the SSH command string

    The connection command looks like the following sample:

    ssh -p 12345 student@ml-lab-00000000-0000-0000-0000-000000000000.eastus2.cloudapp.azure.com
    
  4. Copy the command.

  5. Go to your command prompt or terminal, paste in the command, and then press ENTER.

  6. Enter the password to sign in to the lab VM.

Next steps