title | description | services | ms.topic | ms.date |
---|---|---|---|---|
How to connect to an Azure Lab Services VM | Microsoft Docs |
Learn how to connect to a VM in Azure Lab Services |
lab-services |
how-to |
02/1/2022 |
As a student, you'll need to start and then connect to your lab VM to complete your lab work. How you connect to your VM will depend on the operating system (OS) of the machine your using and the OS of the VM your connecting to.
If connecting to a Windows VM, 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. |
This section shows students how to connect to a Linux VM in a lab using secure shell protocol (SSH), remote desktop protocol (RDP), or X2Go.
SSH is configured automatically for Linux VMs. Both students and educators can SSH into Linux VMs without any extra setup. However, if students need to connect to using a GUI, the educators may need to do extra setup on the template VM.
Warning
If you need to use GNOME or MATE you should coordinate with your educator to ensure your lab VM is properly configured. For details, see Using GNOME or MATE graphical desktops.
An educator must first 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. |
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.
By default Linux VMs have SSH installed. To connect to a Linux VM using SSH, do the following actions:
-
If using a Windows machine to connect to a Linux VM, first install an ssh client like PuTTY or enable OpenSSH in Windows.
-
Start the VM, if not done already.
-
Once the VM is running, select Connect, which will show a dialog box that provides the SSH command string. The connection command will look like the following sample:
ssh -p 12345 student@ml-lab-00000000-0000-0000-0000-000000000000.eastus2.cloudapp.azure.com
-
Copy the command.
-
Go to your command prompt or terminal, paste in the command, and then press ENTER.
-
Enter the password to sign in to the lab VM.