Skip to content

Commit c4a46d0

Browse files
committed
freshness updates
format update update update
1 parent 733f64e commit c4a46d0

12 files changed

+73
-55
lines changed

articles/bastion/bastion-connect-vm-ssh-linux.md

Lines changed: 72 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ description: Learn how to use Azure Bastion to connect to Linux VM using SSH.
55
author: cherylmc
66
ms.service: bastion
77
ms.topic: how-to
8-
ms.date: 10/18/2022
8+
ms.date: 04/25/2023
99
ms.author: cherylmc
10-
ms.custom: ignite-fall-2021
1110
---
1211

1312
# Create an SSH connection to a Linux VM using Azure Bastion
@@ -16,97 +15,93 @@ This article shows you how to securely and seamlessly create an SSH connection t
1615

1716
Azure Bastion provides secure connectivity to all of the VMs in the virtual network in which it's provisioned. Using Azure Bastion protects your virtual machines from exposing RDP/SSH ports to the outside world, while still providing secure access using RDP/SSH. For more information, see the [What is Azure Bastion?](bastion-overview.md) overview article.
1817

19-
When connecting to a Linux virtual machine using SSH, you can use both username/password and SSH keys for authentication.
20-
21-
The SSH private key must be in a format that begins with `"-----BEGIN RSA PRIVATE KEY-----"` and ends with `"-----END RSA PRIVATE KEY-----"`.
18+
When connecting to a Linux virtual machine using SSH, you can use both username/password and SSH keys for authentication. The SSH private key must be in a format that begins with `"-----BEGIN RSA PRIVATE KEY-----"` and ends with `"-----END RSA PRIVATE KEY-----"`.
2219

2320
## Prerequisites
2421

25-
Make sure that you have set up an Azure Bastion host for the virtual network in which the VM resides. For more information, see [Create an Azure Bastion host](./tutorial-create-host-portal.md). Once the Bastion service is provisioned and deployed in your virtual network, you can use it to connect to any VM in this virtual network.
22+
Make sure that you have set up an Azure Bastion host for the virtual network in which the VM resides. For more information, see [Create an Azure Bastion host](./tutorial-create-host-portal.md). Once the Bastion service is provisioned and deployed in your virtual network, you can use it to connect to any VM in this virtual network.
23+
24+
The connection settings and features that are available depend on the Bastion SKU you're using.
25+
26+
* To see the available features and settings per SKU tier, see the [SKUs and features](bastion-overview.md#sku) section of the Bastion overview article.
27+
* To check the SKU tier of your Bastion deployment and upgrade if necessary, see [Upgrade a Bastion SKU](upgrade-sku.md).
2628

2729
### Required roles
2830

2931
In order to make a connection, the following roles are required:
3032

31-
* Reader role on the virtual machine
32-
* Reader role on the NIC with private IP of the virtual machine
33-
* Reader role on the Azure Bastion resource
34-
* Reader role on the virtual network of the target virtual machine (if the Bastion deployment is in a peered virtual network)
33+
* Reader role on the virtual machine.
34+
* Reader role on the NIC with private IP of the virtual machine.
35+
* Reader role on the Azure Bastion resource.
36+
* Reader role on the virtual network of the target virtual machine (if the Bastion deployment is in a peered virtual network).
3537

3638
### Ports
3739

3840
In order to connect to the Linux VM via SSH, you must have the following ports open on your VM:
3941

4042
* Inbound port: SSH (22) ***or***
41-
* Inbound port: Custom value (you'll then need to specify this custom port when you connect to the VM via Azure Bastion)
42-
43-
> [!NOTE]
44-
> If you want to specify a custom port value, Azure Bastion must be configured using the Standard SKU. The Basic SKU does not allow you to specify custom ports.
45-
>
43+
* Inbound port: Custom value (you'll then need to specify this custom port when you connect to the VM via Azure Bastion). This setting requires the **Standard** SKU tier.
4644

4745
## Bastion connection page
4846

49-
1. In the [Azure portal](https://portal.azure.com), go to the virtual machine that you want to connect to. On the **Overview** page, select **Connect**, then select **Bastion** from the dropdown to open the Bastion connection page. You can also select **Bastion** from the left pane.
47+
1. In the [Azure portal](https://portal.azure.com), go to the virtual machine to which you want to connect. On the **Overview** page for the virtual machine, select **Connect**, then select **Bastion** from the dropdown to open the Bastion page.
5048

51-
:::image type="content" source="./media/bastion-connect-vm-ssh-linux/connect.png" alt-text="Screenshot shows the overview for a virtual machine in Azure portal with Connect selected" lightbox="./media/bastion-connect-vm-ssh-linux/connect.png":::
49+
:::image type="content" source="./media/bastion-connect-vm-ssh-linux/bastion.png" alt-text="Screenshot shows the Overview page for a virtual machine." lightbox="./media/bastion-connect-vm-ssh-linux/bastion.png":::
5250

53-
1. On the **Bastion** connection page, click the **Connection Settings** arrow to expand all the available settings. If you are using a Bastion **Standard** SKU, you have more available settings than a Basic SKU.
51+
1. On the **Bastion** page, the settings that you can configure depend on the Bastion [SKU](bastion-overview.md#sku) tier that your bastion host has been configured to use.
5452

55-
:::image type="content" source="./media/bastion-connect-vm-ssh-linux/connection-settings.png" alt-text="Screenshot shows connection settings.":::
53+
* If you're using the **Standard** SKU, **Connection Settings** values (ports and protocols) are visible and can be configured.
5654

57-
1. Authenticate and connect using one of the methods in the following sections.
55+
:::image type="content" source="./media/bastion-connect-vm-ssh-linux/bastion-connect-full.png" alt-text="Screenshot shows connection settings for the Standard SKU." lightbox="./media/bastion-connect-vm-ssh-linux/bastion-connect-full.png":::
5856

59-
* [Username and password](#username-and-password)
60-
* [Private key from local file](#private-key-from-local-file)
61-
* [Password - Azure Key Vault](#password---azure-key-vault)
62-
* [Private key - Azure Key Vault](#private-key---azure-key-vault)
57+
* If you're using the **Basic** SKU, you can't configure **Connection Settings** values. Instead, your connection uses the following default settings: SSH and port 22.
6358

64-
## Username and password
59+
:::image type="content" source="./media/bastion-connect-vm-ssh-linux/basic.png" alt-text="Screenshot shows connection settings for the Basic SKU." lightbox="./media/bastion-connect-vm-ssh-linux/basic.png":::
6560

66-
Use the following steps to authenticate using username and password.
61+
* To view and select an available **Authentication Type**, use the dropdown.
6762

68-
:::image type="content" source="./media/bastion-connect-vm-ssh-linux/password.png" alt-text="Screenshot shows Password authentication.":::
63+
:::image type="content" source="./media/bastion-connect-vm-ssh-linux/authentication-type.png" alt-text="Screenshot shows authentication type settings." lightbox="./media/bastion-connect-vm-ssh-linux/authentication-type.png":::
6964

70-
1. To authenticate using a username and password, configure the following settings:
65+
1. Use the following sections in this article to configure authentication settings and connect to your VM.
7166

72-
* **Protocol**: Select SSH.
73-
* **Port**: Input the port number. Custom port connections are available for the Standard SKU only.
74-
* **Authentication type**: Select **Password** from the dropdown.
75-
* **Username**: Enter the username.
76-
* **Password**: Enter the **Password**.
67+
* [Username and password](#password-authentication)
68+
* [Password - Azure Key Vault](#password-authentication---azure-key-vault)
69+
* [SSH private key from local file](#ssh-private-key-authentication---local-file)
70+
* [SSH private key - Azure Key Vault](#ssh-private-key-authentication---azure-key-vault)
7771

78-
1. To work with the VM in a new browser tab, select **Open in new browser tab**.
72+
## Password authentication
7973

80-
1. Click **Connect** to connect to the VM.
74+
Use the following steps to authenticate using username and password.
8175

82-
## Private key from local file
76+
:::image type="content" source="./media/bastion-connect-vm-ssh-linux/password.png" alt-text="Screenshot shows Password authentication." lightbox="./media/bastion-connect-vm-ssh-linux/password.png":::
8377

84-
Use the following steps to authenticate using an SSH private key from a local file.
78+
1. To authenticate using a username and password, configure the following settings.
8579

86-
:::image type="content" source="./media/bastion-connect-vm-ssh-linux/private-key-file.png" alt-text="Screenshot shows private key from local file authentication.":::
80+
* **Connection Settings** (Standard SKU only)
8781

88-
1. To authenticate using a private key from a local file, configure the following settings:
82+
* **Protocol**: Select SSH.
83+
* **Port**: Specify the port number.
8984

90-
* **Protocol**: Select SSH.
91-
* **Port**: Input the port number. Custom port connections are available for the Standard SKU only.
92-
* **Authentication type**: Select **SSH Private Key from Local File** from the dropdown.
93-
* **Local File**: Select the local file.
94-
* **SSH Passphrase**: Enter the SSH passphrase if necessary.
85+
* **Authentication type**: Select **Password** from the dropdown.
86+
* **Username**: Enter the username.
87+
* **Password**: Enter the **Password**.
9588

9689
1. To work with the VM in a new browser tab, select **Open in new browser tab**.
9790

9891
1. Click **Connect** to connect to the VM.
9992

100-
## Password - Azure Key Vault
93+
## Password authentication - Azure Key Vault
10194

10295
Use the following steps to authenticate using a password from Azure Key Vault.
10396

104-
:::image type="content" source="./media/bastion-connect-vm-ssh-linux/password-key-vault.png" alt-text="Screenshot shows password from Azure Key Vault authentication.":::
97+
:::image type="content" source="./media/bastion-connect-vm-ssh-linux/password-key-vault.png" alt-text="Screenshot shows password from Azure Key Vault authentication." lightbox="./media/bastion-connect-vm-ssh-linux/password-key-vault.png":::
10598

106-
1. To authenticate using a password from Azure Key Vault, configure the following settings:
99+
1. To authenticate using a password from Azure Key Vault, configure the following settings.
107100

108-
* **Protocol**: Select SSH.
109-
* **Port**: Input the port number. Custom port connections are available for the Standard SKU only.
101+
* **Connection Settings** (Standard SKU only)
102+
103+
* **Protocol**: Select SSH.
104+
* **Port**: Specify the port number.
110105
* **Authentication type**: Select **Password from Azure Key Vault** from the dropdown.
111106
* **Username**: Enter the username.
112107
* **Subscription**: Select the subscription.
@@ -125,16 +120,39 @@ Use the following steps to authenticate using a password from Azure Key Vault.
125120

126121
1. Click **Connect** to connect to the VM.
127122

128-
## Private key - Azure Key Vault
123+
## SSH private key authentication - local file
124+
125+
Use the following steps to authenticate using an SSH private key from a local file.
126+
127+
:::image type="content" source="./media/bastion-connect-vm-ssh-linux/private-key-file.png" alt-text="Screenshot shows private key from local file authentication." lightbox="./media/bastion-connect-vm-ssh-linux/private-key-file.png":::
128+
129+
1. To authenticate using a private key from a local file, configure the following settings.
130+
131+
* **Connection Settings** (Standard SKU only)
132+
133+
* **Protocol**: Select SSH.
134+
* **Port**: Specify the port number.
135+
* **Authentication type**: Select **SSH Private Key from Local File** from the dropdown.
136+
* **Username**: Enter the username.
137+
* **Local File**: Select the local file.
138+
* **SSH Passphrase**: Enter the SSH passphrase if necessary.
139+
140+
1. To work with the VM in a new browser tab, select **Open in new browser tab**.
141+
142+
1. Click **Connect** to connect to the VM.
143+
144+
## SSH private key authentication - Azure Key Vault
129145

130146
Use the following steps to authenticate using a private key stored in Azure Key Vault.
131147

132-
:::image type="content" source="./media/bastion-connect-vm-ssh-linux/ssh-key-vault.png" alt-text="Screenshot shows Private key stored in Azure Key Vault authentication.":::
148+
:::image type="content" source="./media/bastion-connect-vm-ssh-linux/ssh-key-vault.png" alt-text="Screenshot shows Private key stored in Azure Key Vault authentication." lightbox="./media/bastion-connect-vm-ssh-linux/ssh-key-vault.png":::
149+
150+
1. To authenticate using a private key stored in Azure Key Vault, configure the following settings. For the Basic SKU, connection settings can't be configured and will instead use the default connection settings: SSH and port 22.
133151

134-
1. To authenticate using a private key stored in Azure Key Vault, configure the following settings:
152+
* **Connection Settings** (Standard SKU only)
135153

136-
* **Protocol**: Select SSH.
137-
* **Port**: Input the port number. Custom port connections are available for the Standard SKU only.
154+
* **Protocol**: Select SSH.
155+
* **Port**: Specify the port number.
138156
* **Authentication type**: Select **SSH Private Key from Azure Key Vault** from the dropdown.
139157
* **Username**: Enter the username.
140158
* **Subscription**: Select the subscription.

articles/bastion/bastion-connect-vm-ssh-windows.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Currently, Azure Bastion only supports connecting to Windows VMs via SSH using *
5959

6060
1. In the [Azure portal](https://portal.azure.com), go to the virtual machine that you want to connect to. On the **Overview** page, select **Connect**, then select **Bastion** from the dropdown to open the Bastion connection page. You can also select **Bastion** from the left pane.
6161

62-
:::image type="content" source="./media/bastion-connect-vm-ssh-windows/connect.png" alt-text="Screenshot shows the overview for a virtual machine in Azure portal with Connect selected." lightbox="./media/bastion-connect-vm-ssh-linux/connect.png":::
62+
:::image type="content" source="./media/bastion-connect-vm-ssh-windows/connect.png" alt-text="Screenshot shows the overview for a virtual machine in Azure portal with Connect selected." lightbox="./media/bastion-connect-vm-ssh-windows/connect.png":::
6363

6464
1. On the **Bastion** connection page, click the **Connection Settings** arrow to expand all the available settings. If you are using a Bastion **Standard** SKU, you have more available settings than a Basic SKU.
6565

273 KB
Loading
286 KB
Loading
304 KB
Loading
228 KB
Loading
Binary file not shown.
Binary file not shown.
4.28 KB
Loading
1.85 KB
Loading

0 commit comments

Comments
 (0)