|
1 | 1 | ---
|
2 |
| -title: 'Connect to a Linux VM using Azure Bastion | Microsoft Docs' |
| 2 | +title: 'Connect to a Linux VM using Azure Bastion' |
3 | 3 | description: In this article, learn how to connect to Linux Virtual Machine by using Azure Bastion.
|
4 | 4 | services: bastion
|
5 | 5 | author: cherylmc
|
6 | 6 |
|
7 | 7 | ms.service: bastion
|
8 | 8 | ms.topic: conceptual
|
9 |
| -ms.date: 02/03/2020 |
| 9 | +ms.date: 02/24/2020 |
10 | 10 | ms.author: cherylmc
|
11 | 11 | # Customer intent: As someone with a networking background, I want to connect to an Azure virtual machine running Linux that doesn't have a public IP address by using Azure Bastion.
|
12 | 12 |
|
@@ -43,34 +43,37 @@ In order to connect to the Linux VM via SSH, you must have the following ports o
|
43 | 43 |
|
44 | 44 | * Inbound port: SSH (22)
|
45 | 45 |
|
46 |
| - |
47 | 46 | ## <a name="username"></a>Connect: Using username and password
|
48 | 47 |
|
49 |
| -1. Open the [Azure portal](https://portal.azure.com). Navigate to the virtual machine that you want to connect to, then click **Connect**. The VM should be a Linux virtual machine when using an SSH connection. |
50 |
| -1. After you click Connect, a side bar appears that has three tabs – RDP, SSH, and Bastion. If Bastion was provisioned for the virtual network, the Bastion tab is active by default. If you didn't provision Bastion for the virtual network, see [Configure Bastion](bastion-create-host-portal.md). |
| 48 | +1. Open the [Azure portal](https://portal.azure.com). Navigate to the virtual machine that you want to connect to, then click **Connect** and select **Bastion** from the dropdown. |
| 49 | + |
| 50 | +  |
| 51 | +1. After you click Bastion, a side bar appears that has three tabs – RDP, SSH, and Bastion. If Bastion was provisioned for the virtual network, the Bastion tab is active by default. If you didn't provision Bastion for the virtual network, see [Configure Bastion](bastion-create-host-portal.md). |
51 | 52 |
|
52 |
| -  |
| 53 | +  |
53 | 54 | 1. Enter the username and password for SSH to your virtual machine.
|
54 | 55 | 1. Click **Connect** button after entering the key.
|
55 | 56 |
|
56 | 57 | ## <a name="privatekey"></a>Connect: Manually enter a private key
|
57 | 58 |
|
58 |
| -1. Open the [Azure portal](https://portal.azure.com). Navigate to the virtual machine that you want to connect to, then click **Connect**. The VM should be a Linux virtual machine when using an SSH connection. |
59 |
| -1. After you click Connect, a side bar appears that has three tabs – RDP, SSH, and Bastion. If Bastion was provisioned for the virtual network, the Bastion tab is active by default. If you didn't provision Bastion for the virtual network, see [Configure Bastion](bastion-create-host-portal.md). |
| 59 | +1. Open the [Azure portal](https://portal.azure.com). Navigate to the virtual machine that you want to connect to, then click **Connect** and select **Bastion** from the dropdown. |
| 60 | + |
| 61 | +  |
| 62 | +1. After you click Bastion, a side bar appears that has three tabs – RDP, SSH, and Bastion. If Bastion was provisioned for the virtual network, the Bastion tab is active by default. If you didn't provision Bastion for the virtual network, see [Configure Bastion](bastion-create-host-portal.md). |
60 | 63 |
|
61 |
| -  |
| 64 | +  |
62 | 65 | 1. Enter the username and select **SSH Private Key**.
|
63 | 66 | 1. Enter your private key into the text area **SSH Private Key** (or paste it directly).
|
64 | 67 | 1. Click **Connect** button after entering the key.
|
65 | 68 |
|
66 | 69 | ## <a name="ssh"></a>Connect: Using a private key file
|
67 | 70 |
|
68 |
| -1. Open the [Azure portal](https://portal.azure.com). Navigate to the virtual machine that you want to connect to, then click **Connect**. The VM should be a Linux virtual machine when using an SSH connection. |
| 71 | +1. Open the [Azure portal](https://portal.azure.com). Navigate to the virtual machine that you want to connect to, then click **Connect** and select **Bastion** from the dropdown. |
69 | 72 |
|
70 |
| -  |
71 |
| -1. After you click Connect, a side bar appears that has three tabs – RDP, SSH, and Bastion. If Bastion was provisioned for the virtual network, the Bastion tab is active by default. If you didn't provision Bastion for the virtual network, see [Configure Bastion](bastion-create-host-portal.md). |
| 73 | +  |
| 74 | +1. After you click Bastion, a side bar appears that has three tabs – RDP, SSH, and Bastion. If Bastion was provisioned for the virtual network, the Bastion tab is active by default. If you didn't provision Bastion for the virtual network, see [Configure Bastion](bastion-create-host-portal.md). |
72 | 75 |
|
73 |
| -  |
| 76 | +  |
74 | 77 | 1. Enter the username and select **SSH Private Key from Local File**.
|
75 | 78 | 1. Click the **Browse** button (the folder icon in the local file).
|
76 | 79 | 1. Browse for the file, then click **Open**.
|
|
0 commit comments