title | description | ms.topic | ms.author | author | ms.date |
---|---|---|---|---|---|
Connect to your Linux virtual machines |
Learn how to connect to your Linux virtual machine in a lab (Azure DevTest Labs) |
how-to |
rosemalcolm |
RoseHJM |
07/17/2020 |
This article shows you how to connect to Linux VM in your lab.
-
Sign in to the Azure portal.
-
In the search bar, search for and select DevTest Labs.
:::image type="content" source="./media/connect-linux-virtual-machine/search-select.png" alt-text="Search for and select DevTest Labs":::
-
From the list of labs, select your lab.
:::image type="content" source="./media/connect-linux-virtual-machine/select-lab.png" alt-text="Select your lab":::
-
On the home page for your lab, select your Linux VM from the My virtual machines list.
:::image type="content" source="./media/connect-linux-virtual-machine/select-linux-vm.png" alt-text="Select your Linux VM":::
-
On the Overview page, you can see the fully qualified domain name (FQDN) or IP address of the VM. You can also see the port as shown in the following image.
:::image type="content" source="./media/connect-linux-virtual-machine/vm-overview.png" alt-text="Fully qualified domain name for the VM":::
Notice that Connect button is grayed even though the VM is started. That's by design.
-
Use SSH to connect to your Linux VM. The following example connects to the VM with FQDN
mydtl07172452621450000.eastus.cloudapp.azure.com
, with the username ofvmuser
and port51637
. Enter the password for the user to connect to the VM.ssh vmuser@mydtl07172452621450000.eastus.cloudapp.azure.com -p 51637
You can use tools such as Putty or any other SSH client to connect to the VM.
After you connect using SSH, you can install and configure a desktop environment (xfce) and remote desktop (xrdp). For detailed information, see Install and configure Remote Desktop to connect to a Linux VM in Azure.