Skip to content

Commit e213fcd

Browse files
committed
Refresh Connect to a lab VM
1 parent de982d3 commit e213fcd

File tree

1 file changed

+32
-16
lines changed

1 file changed

+32
-16
lines changed

articles/lab-services/connect-virtual-machine.md

Lines changed: 32 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
---
2-
title: How to connect to an Azure Lab Services VM | Microsoft Docs
3-
description: Learn how to connect to a VM in Azure Lab Services
2+
title: How to connect to a lab VM
3+
titleSuffix: Azure Lab Services
4+
description: Learn how to connect to a lab VM in Azure Lab Services.
45
services: lab-services
6+
ms.service: lab-services
7+
author: ntrogh
8+
ms.author: nicktrog
59
ms.topic: how-to
6-
ms.date: 02/1/2022
10+
ms.date: 02/17/2023
711
---
812

913
# Connect to a lab VM
1014

11-
As a student, you'll need to [start](how-to-use-lab.md#start-or-stop-the-vm) 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.
15+
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 you local machine, you can use different mechanisms, such as secure shell (SSH) or remote desktop (RDP), to connect to your VM.
16+
17+
To connect to a lab VM, the VM must be running. Learn more about [how to start and stop a lab VM](how-to-use-lab.md#start-or-stop-the-vm).
1218

1319
## Connect to a Windows lab VM
1420

15-
If connecting *to a Windows VM*, follow the instructions based on the type of OS you're using.
21+
Follow these instructions to connect to a Windows-based lab VM. Choose the instructions that match your local machine's operating system.
1622

1723
| Client OS | Instructions |
1824
| --------- | ------------ |
@@ -22,18 +28,18 @@ If connecting *to a Windows VM*, follow the instructions based on the type of OS
2228

2329
## Connect to a Linux lab VM
2430

25-
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.
31+
To connect to a Linux-based lab VM, you can use the secure shell protocol (SSH), remote desktop protocol (RDP), or X2Go.
2632

27-
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.
33+
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.
2834

2935
> [!WARNING]
30-
> If you need to use [GNOME](https://www.gnome.org/) or [MATE](https://mate-desktop.org/) you should coordinate with your educator to ensure your lab VM is properly configured. For details, see [Using GNOME or MATE graphical desktops](how-to-enable-remote-desktop-linux.md#using-gnome-or-mate-graphical-desktops).
36+
> If you need to use [GNOME](https://www.gnome.org/) or [MATE](https://mate-desktop.org/) 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](how-to-enable-remote-desktop-linux.md#using-gnome-or-mate-graphical-desktops).
3137
32-
### Connect to a Linux lab VM Using RDP
38+
### Connect to a Linux lab VM using RDP
3339

34-
An educator must first [enable remote desktop connection for Linux VMs](how-to-enable-remote-desktop-linux.md#rdp-setup).
40+
Before you can connect to a Linux VM using RDP, the lab creator first needs to [enable remote desktop connection for Linux VMs](how-to-enable-remote-desktop-linux.md#rdp-setup).
3541

36-
To connect *to a Linux VM using RDP*, follow the instructions based on the type of OS you're using.
42+
To connect to a Linux VM using RDP, follow the instructions based on the type of OS you're using.
3743

3844
| Client OS | Instructions |
3945
| --------- | ------------ |
@@ -45,22 +51,32 @@ To connect *to a Linux VM using RDP*, follow the instructions based on the type
4551

4652
Linux VMs can have X2Go enabled and a graphical desktop installed. For more information, see [X2Go Setup](how-to-enable-remote-desktop-linux.md#setting-up-x2go) and [Using GNOME or MATE graphical desktops](how-to-enable-remote-desktop-linux.md#using-gnome-or-mate-graphical-desktops).
4753

48-
For instructions to connect *to a Linux VM using X2Go*, see [Connect to a VM using X2Go](connect-virtual-machine-linux-x2go.md).
54+
For instructions to connect to a Linux VM using X2Go, see [Connect to a VM using X2Go](connect-virtual-machine-linux-x2go.md).
4955

5056
### Connect to a Linux lab VM using SSH
5157

52-
By default Linux VMs have SSH installed. To connect *to a Linux VM using SSH*, do the following actions:
58+
By default Linux VMs have SSH installed. To connect to a Linux VM using SSH:
59+
60+
1. If you're using a Windows machine to connect to the lab VM, ensure you have SSH client software on your machine.
61+
62+
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](/windows/terminal/tutorials/ssh).
63+
64+
Alternately, you can download an SSH client, such as [PuTTY](https://www.putty.org/) or enable [OpenSSH in Windows](/windows-server/administration/openssh/openssh_install_firstuse).
5365

54-
1. If using a Windows machine to connect to a Linux VM, first install an ssh client like [PuTTY](https://www.putty.org/) or enable [OpenSSH in Windows](/windows-server/administration/openssh/openssh_install_firstuse).
55-
1. [Start the VM](how-to-use-lab.md#start-or-stop-the-vm), if not done already.
56-
1. 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:
66+
1. If the lab VM is not running, go to the [Azure Lab Services website](https://labs.azure.com), and then [start the lab VM](how-to-use-lab.md#start-or-stop-the-vm).
67+
68+
1. Once the VM is running, select the **Connect** icon > **Connect via SSH**, to get the SSH command string
69+
70+
The connection command looks like the following sample:
5771

5872
```bash
5973
ssh -p 12345 student@ml-lab-00000000-0000-0000-0000-000000000000.eastus2.cloudapp.azure.com
6074
```
6175

6276
1. Copy the command.
77+
6378
1. Go to your command prompt or terminal, paste in the command, and then press **ENTER**.
79+
6480
1. Enter the password to sign in to the lab VM.
6581

6682
## Next steps

0 commit comments

Comments
 (0)