|
1 | 1 | ---
|
2 |
| -title: Connect to a Linux VM using X2Go in Azure Lab Services | Microsoft Docs |
| 2 | +title: Connect to a Linux VM using X2Go |
| 3 | +titleSuffix: Azure Lab Services |
3 | 4 | description: Learn how to use X2Go for Linux virtual machines in a lab in Azure Lab Services.
|
| 5 | +services: lab-services |
| 6 | +ms.service: lab-services |
| 7 | +author: ntrogh |
| 8 | +ms.author: nicktrog |
4 | 9 | ms.topic: how-to
|
5 |
| -ms.date: 02/01/2022 |
| 10 | +ms.date: 04/24/2023 |
6 | 11 | ---
|
7 | 12 |
|
8 |
| -# Connect to a VM using X2Go |
| 13 | +# Connect to a lab VM using X2Go in Azure Lab Services |
9 | 14 |
|
10 |
| -Students can use X2Go to connect to their Linux VMs after their educator sets up their lab with X2Go and the GUI packages for a Linux graphical desktop environment |
| 15 | +In this article, you learn how to connect to a Linux-based lab VM in Azure Lab Services by using X2Go. Before you can connect with X2Go, the lab needs to have the X2Go and the GUI packages for a Linux graphical desktop environment. |
11 | 16 |
|
12 |
| -Students need to find out from their educator which Linux graphical desktop environment their educator has installed. This information is needed in the next steps to connect using the X2Go client. |
| 17 | +When you connect to the lab VM by using X2Go, you need to provide the Linux graphical desktop environment version. For example, select `XFCE` if you're using either XFCE or Xubuntu graphical desktop environments. You can get this information from the person that created the lab. |
13 | 18 |
|
14 | 19 | ## Install X2Go client
|
15 | 20 |
|
16 |
| -Install the [X2Go client](https://wiki.x2go.org/doku.php/doc:installation:x2goclient) on your local computer. Follow the instructions that match the client OS you are using. |
| 21 | +Install the [X2Go client](https://wiki.x2go.org/doku.php/doc:installation:x2goclient) on your local computer. Follow the instructions that match your client OS. |
17 | 22 |
|
18 | 23 | ## Connect to the VM using X2Go client
|
19 | 24 |
|
20 |
| -1. Copy SSH connection information for VM. For instructions to get the SSH command, see [Connect to a Linux lab VM Using SSH](connect-virtual-machine.md#connect-to-a-linux-lab-vm-using-ssh). You need this information to connect using the X2Go client. |
| 25 | +1. Copy SSH connection information for the lab VM. |
| 26 | + |
| 27 | + Learn how to [Connect to a Linux lab VM Using SSH](connect-virtual-machine.md#connect-to-a-linux-lab-vm-using-ssh). You need this information to connect using the X2Go client. |
21 | 28 |
|
22 | 29 | 1. Once you have the SSH connection information, open the X2Go client and select **Session** > **New Session**.
|
23 | 30 |
|
24 | 31 | :::image type="content" source="./media/how-to-use-classroom-lab/x2go-new-session.png" alt-text="Screenshot of X 2 Go client Session menu.":::
|
25 | 32 |
|
26 |
| -1. Enter the values in the **Session Preferences** pane based on your SSH connection information. For example, your connection information will look similar to following command. |
| 33 | +1. Enter the values in the **Session Preferences** pane based on your SSH connection information. |
| 34 | + |
| 35 | + For example, your connection information might look similar to following command. |
27 | 36 |
|
28 | 37 | ```bash
|
29 | 38 | ssh -p 12345 student@ml-lab-00000000-0000-0000-0000-000000000000.eastus2.cloudapp.azure.com
|
30 | 39 | ```
|
31 | 40 |
|
32 |
| - Using this example, the following values are entered: |
| 41 | + Based on this sample, enter the following values: |
33 | 42 |
|
34 | 43 | - **Session name** - Specify a name, such as the name of your VM.
|
35 | 44 | - **Host** - The ID of your VM; for example, **`ml-lab-00000000-0000-0000-0000-000000000000.eastus2.cloudapp.azure.com`**.
|
36 | 45 | - **Login** - The username for your VM; for example, **student**.
|
37 | 46 | - **SSH port** - The unique port assigned to your VM; for example, **12345**.
|
38 |
| - - **Session type** - Select the Linux graphical desktop environment that your educator configured your VM. You need to get this information from your educator. For example, select `XFCE` if you're using either XFCE or Xubuntu graphical desktop environments. |
| 47 | + - **Session type** - Select the Linux graphical desktop environment that was used when setting up the lab. For example, select `XFCE` if you're using either XFCE or Xubuntu graphical desktop environments. |
39 | 48 |
|
40 |
| - Finally, select **OK** to create the session. |
| 49 | +1. Select **OK** to create the remote session. |
41 | 50 |
|
42 | 51 | :::image type="content" source="./media/how-to-use-classroom-lab/x2go-session-preferences.png" alt-text="Screenshot of new session window in X 2 Go client. The session name, server information and session type settings are highlighted.":::
|
43 | 52 |
|
44 |
| -1. Select on your session in the right-hand pane. |
| 53 | +1. Select your session in the right-hand pane. |
45 | 54 |
|
46 | 55 | :::image type="content" source="./media/how-to-use-classroom-lab/x2go-start-session.png" alt-text="Screenshot of X 2 Go with saved session.":::
|
47 | 56 |
|
48 | 57 | > [!NOTE]
|
49 |
| - > If you are prompted with a message about authenticity, select **yes** to continue to entering your password. Message will be similar to "The authenticity of host '[`00000000-0000-0000-0000-000000000000.eastus2.cloudapp.eastus.cloudapp.azure.com`]:12345' can't be established. ECDSA key fingerprint is SHA256:00000000000000000000000000000000000000000000.Are you sure you want to continue connecting (yes/no)?" |
| 58 | + > If you're prompted with a message about authenticity, select **yes** to continue, and enter your password. The message is similar to "The authenticity of host '[`00000000-0000-0000-0000-000000000000.eastus2.cloudapp.eastus.cloudapp.azure.com`]:12345' can't be established. ECDSA key fingerprint is SHA256:00000000000000000000000000000000000000000000.Are you sure you want to continue connecting (yes/no)?" |
| 59 | + |
| 60 | +1. When prompted, enter your password and select **OK**. |
50 | 61 |
|
51 |
| -1. When prompted, enter your password and select **OK**. You'll now be remotely connected to your VM's GUI desktop environment. |
| 62 | + You're now remotely connected to your lab VM's GUI desktop environment. |
52 | 63 |
|
53 | 64 | ## Next steps
|
54 | 65 |
|
55 |
| -- [As an educator, configure X2Go on a template VM](how-to-enable-remote-desktop-linux.md#setting-up-x2go) |
56 |
| -- [As a student, stop the VM](how-to-use-lab.md#start-or-stop-the-vm) |
| 66 | +- [Configure X2Go on a template VM](how-to-enable-remote-desktop-linux.md#setting-up-x2go) |
0 commit comments