You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/lab-services/connect-virtual-machine.md
+32-16Lines changed: 32 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,24 @@
1
1
---
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.
4
5
services: lab-services
6
+
ms.service: lab-services
7
+
author: ntrogh
8
+
ms.author: nicktrog
5
9
ms.topic: how-to
6
-
ms.date: 02/1/2022
10
+
ms.date: 02/17/2023
7
11
---
8
12
9
13
# Connect to a lab VM
10
14
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).
12
18
13
19
## Connect to a Windows lab VM
14
20
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.
16
22
17
23
| Client OS | Instructions |
18
24
| --------- | ------------ |
@@ -22,18 +28,18 @@ If connecting *to a Windows VM*, follow the instructions based on the type of OS
22
28
23
29
## Connect to a Linux lab VM
24
30
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.
26
32
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.
28
34
29
35
> [!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).
31
37
32
-
### Connect to a Linux lab VM Using RDP
38
+
### Connect to a Linux lab VM using RDP
33
39
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).
35
41
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.
37
43
38
44
| Client OS | Instructions |
39
45
| --------- | ------------ |
@@ -45,22 +51,32 @@ To connect *to a Linux VM using RDP*, follow the instructions based on the type
45
51
46
52
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).
47
53
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).
49
55
50
56
### Connect to a Linux lab VM using SSH
51
57
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).
53
65
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:
0 commit comments