Skip to content

Commit 1243fa5

Browse files
committed
Merge branch 'main' of https://github.com/MicrosoftDocs/azure-docs-pr into 240426-266888
2 parents 3413e85 + 377b9ea commit 1243fa5

File tree

7 files changed

+23
-27
lines changed

7 files changed

+23
-27
lines changed

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

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ author: cherylmc
66
ms.service: bastion
77
ms.custom: linux-related-content
88
ms.topic: how-to
9-
ms.date: 10/13/2023
9+
ms.date: 04/26/2024
1010
ms.author: cherylmc
1111
---
1212

1313
# Create an SSH connection to a Linux VM using Azure Bastion
1414

1515
This article shows you how to securely and seamlessly create an SSH connection to your Linux VMs located in an Azure virtual network directly through the Azure portal. When you use Azure Bastion, your VMs don't require a client, agent, or additional software.
1616

17-
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.
17+
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) article.
1818

1919
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-----"`.
2020

@@ -41,28 +41,24 @@ In order to make a connection, the following roles are required:
4141
In order to connect to the Linux VM via SSH, you must have the following ports open on your VM:
4242

4343
* Inbound port: SSH (22) ***or***
44-
* 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.
44+
* Inbound port: Custom value (you'll then need to specify this custom port when you connect to the VM via Azure Bastion). This setting is not available for the Basic or Developer SKU.
4545

4646
## Bastion connection page
4747

48-
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.
48+
1. In the Azure portal, go to the virtual machine to which you want to connect. At the top of the virtual machine **Overview** page, select **Connect**, then select **Connect via Bastion** from the dropdown. This opens the **Bastion** page. You can go to the Bastion page directly in the left pane.
4949

5050
:::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":::
5151

5252
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.
5353

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

56-
:::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":::
56+
* If you're using a SKU higher than the Basic SKU, **Connection Settings** values (ports and protocols) are visible and can be configured.
5757

58-
* 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.
59-
60-
:::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":::
58+
* If you're using the Basic SKU or Developer SKU, you can't configure **Connection Settings** values. Instead, your connection uses the following default settings: SSH and port 22.
6159

6260
* To view and select an available **Authentication Type**, use the dropdown.
6361

64-
:::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":::
65-
6662
1. Use the following sections in this article to configure authentication settings and connect to your VM.
6763

6864
* [Username and password](#password-authentication)
@@ -78,7 +74,7 @@ Use the following steps to authenticate using username and password.
7874

7975
1. To authenticate using a username and password, configure the following settings.
8076

81-
* **Connection Settings** (Standard SKU only)
77+
* **Connection Settings**: Only available for SKUs higher than the Basic SKU.
8278

8379
* **Protocol**: Select SSH.
8480
* **Port**: Specify the port number.
@@ -99,7 +95,7 @@ Use the following steps to authenticate using a password from Azure Key Vault.
9995

10096
1. To authenticate using a password from Azure Key Vault, configure the following settings.
10197

102-
* **Connection Settings** (Standard SKU only)
98+
* **Connection Settings**: Only available for SKUs higher than the Basic SKU.
10399

104100
* **Protocol**: Select SSH.
105101
* **Port**: Specify the port number.
@@ -113,9 +109,7 @@ Use the following steps to authenticate using a password from Azure Key Vault.
113109

114110
* Make sure you have **List** and **Get** access to the secrets stored in the Key Vault resource. To assign and modify access policies for your Key Vault resource, see [Assign a Key Vault access policy](../key-vault/general/assign-access-policy-portal.md).
115111

116-
> [!NOTE]
117-
> Please store your SSH private key as a secret in Azure Key Vault using the **PowerShell** or **Azure CLI** experience. Storing your private key via the Azure Key Vault portal experience will interfere with the formatting and result in unsuccessful login. If you did store your private key as a secret using the portal experience and no longer have access to the original private key file, see [Update SSH key](../virtual-machines/extensions/vmaccess-linux.md#update-ssh-key) to update access to your target VM with a new SSH key pair.
118-
>
112+
* Store your SSH private key as a secret in Azure Key Vault using the **PowerShell** or **Azure CLI** experience. Storing your private key via the Azure Key Vault portal experience interferes with the formatting and result in unsuccessful login. If you did store your private key as a secret using the portal experience and no longer have access to the original private key file, see [Update SSH key](../virtual-machines/extensions/vmaccess-linux.md#update-ssh-key) to update access to your target VM with a new SSH key pair.
119113

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

@@ -129,7 +123,7 @@ Use the following steps to authenticate using an SSH private key from a local fi
129123

130124
1. To authenticate using a private key from a local file, configure the following settings.
131125

132-
* **Connection Settings** (Standard SKU only)
126+
* **Connection Settings**: Only available for SKUs higher than the Basic SKU.
133127

134128
* **Protocol**: Select SSH.
135129
* **Port**: Specify the port number.
@@ -150,7 +144,7 @@ Use the following steps to authenticate using a private key stored in Azure Key
150144

151145
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.
152146

153-
* **Connection Settings** (Standard SKU only)
147+
* **Connection Settings**: Only available for SKUs higher than the Basic SKU.
154148

155149
* **Protocol**: Select SSH.
156150
* **Port**: Specify the port number.
@@ -163,9 +157,7 @@ Use the following steps to authenticate using a private key stored in Azure Key
163157

164158
* Make sure you have **List** and **Get** access to the secrets stored in the Key Vault resource. To assign and modify access policies for your Key Vault resource, see [Assign a Key Vault access policy](../key-vault/general/assign-access-policy-portal.md).
165159

166-
> [!NOTE]
167-
> Please store your SSH private key as a secret in Azure Key Vault using the **PowerShell** or **Azure CLI** experience. Storing your private key via the Azure Key Vault portal experience will interfere with the formatting and result in unsuccessful login. If you did store your private key as a secret using the portal experience and no longer have access to the original private key file, see [Update SSH key](../virtual-machines/extensions/vmaccess-linux.md#update-ssh-key) to update access to your target VM with a new SSH key pair.
168-
>
160+
* Store your SSH private key as a secret in Azure Key Vault using the **PowerShell** or **Azure CLI** experience. Storing your private key via the Azure Key Vault portal experience interferes with the formatting and result in unsuccessful login. If you did store your private key as a secret using the portal experience and no longer have access to the original private key file, see [Update SSH key](../virtual-machines/extensions/vmaccess-linux.md#update-ssh-key) to update access to your target VM with a new SSH key pair.
169161

170162
* **Azure Key Vault Secret**: Select the Key Vault secret containing the value of your SSH private key.
171163

Binary file not shown.
Binary file not shown.
Binary file not shown.
-10.6 KB
Loading
202 KB
Loading

articles/vpn-gateway/TOC.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
href: about-zone-redundant-vnet-gateways.md
5252
- name: Security
5353
items:
54-
- name: Security baseline
55-
href: /security/benchmark/azure/baselines/vpn-gateway-security-baseline?toc=/azure/vpn-gateway/TOC.json
54+
- name: Security baseline
55+
href: /security/benchmark/azure/baselines/vpn-gateway-security-baseline?toc=/azure/vpn-gateway/TOC.json
5656
- name: Backend Connectivity Interoperability
5757
items:
5858
- name: Preface and Test Setup
@@ -287,10 +287,14 @@
287287
href: vpn-gateway-3rdparty-device-config-cisco-asa.md
288288
- name: Configure custom IPsec/IKE connection policies
289289
items:
290-
- name: Azure portal
291-
href: ipsec-ike-policy-howto.md
292-
- name: PowerShell
293-
href: vpn-gateway-ipsecikepolicy-rm-powershell.md
290+
- name: Point-to-site connections
291+
href: create-custom-policies-p2s-ps.md
292+
- name: Site-to-site and VNet-to-VNet connections
293+
items:
294+
- name: Azure portal
295+
href: ipsec-ike-policy-howto.md
296+
- name: PowerShell
297+
href: vpn-gateway-ipsecikepolicy-rm-powershell.md
294298
- name: Configure active-active gateways
295299
items:
296300
- name: Azure portal

0 commit comments

Comments
 (0)