Skip to content

Commit 537978d

Browse files
committed
Updated content, artwork, and TOC.
1 parent 9c359c1 commit 537978d

File tree

4 files changed

+27
-23
lines changed

4 files changed

+27
-23
lines changed

azure-local/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,8 @@ items:
327327
href: manage/create-network-interfaces.md
328328
- name: 5. Create Arc VMs
329329
href: manage/create-arc-virtual-machines.md
330+
- name: Connect to VM via SSH
331+
href: manage/connect-arc-vm-using-ssh.md
330332
- name: Manage Arc VMs
331333
href: manage/manage-arc-virtual-machines.md
332334
- name: Manage Arc VM resources

azure-local/manage/connect-arc-vm-using-ssh.md

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,42 @@ author: alkohli
55
ms.author: alkohli
66
ms.topic: how-to
77
ms.service: azure-local
8-
ms.date: 02/06/2025
8+
ms.date: 02/11/2025
9+
10+
#customer intent: As a Senior Content Developer, I want to provide customers with the highest level of content for using disconneced operations to deploy and manage their Azure Local instances.
911
---
1012

11-
# Connect to an Arc VM on Azure Local using SSH
13+
# Connect to an Arc VM on Azure Local using SSH and RDP over SSH
1214

1315
[!INCLUDE [hci-applies-to-23h2](../includes/hci-applies-to-23h2.md)]
1416

15-
This article uses an example to connect to an Azure Arc VM on Azure Local using Secure Shell (SSH). The example enables the OpenSSH Server via Arc Extension, using Azure CLI. This can also be done in Azure portal.
17+
This article provides an example to connect to an Azure Arc VM on Azure Local using Secure Shell (SSH) and Remote Desktop (RDP) over SSH. The example demonstrates enabling the OpenSSH Server via the Arc Extension using Azure portal and Azure CLI.
1618

1719
## More about the SSH Server Extension
1820

19-
You can open a Remote Desktop (RDP) connection to every Windows Server from the Azure CLI without a VPN or another open port through your firewall. For more information, see [SSH access to Azure Arc-enabled servers](/azure/azure-arc/servers/ssh-arc-overview?tabs=azure-cli).
20-
21-
The latest versions of Windows Server can also act as an SSH Server if you enable the OpenSSH Server Extension. For more information, see [OpenSSH for Windows overview](/windows-server/administration/OpenSSH/openssh-overview).
21+
You can open an RDP connection to every Windows Server from the Azure CLI without a VPN or another open port through your firewall. For more information, see [SSH access to Azure Arc-enabled servers](/azure/azure-arc/servers/ssh-arc-overview?tabs=azure-cli).
2222

2323
## Prerequisites
2424

2525
Before you begin, ensure that you:
2626

2727
1. Have access to Azure Local that is running the latest version of software.
2828

29-
1. Install the OpenSSH Server Extension:
29+
1. Install the OpenSSH Server Extension.
30+
31+
You can install the OpenSSH Server Extension via Azure portal or by PowerShell. Installing the extension via Azure portal is the recommended method.
32+
33+
### Install the OpenSSH Server Extension via Azure portal
34+
35+
To install the extension via Azure portal, select the **OpenSSH for Windows - Azure Arc** option.
3036

3137
:::image type="content" source="./media/connect-arc-vm-using-ssh/install-open-ssh-server-1.png" alt-text="Screenshot of the Azure Arc Extensions page." lightbox="./media/connect-arc-vm-using-ssh/install-open-ssh-server-1.png":::
3238

39+
40+
### Install the OpenSSH Server Extension via PowerShell
41+
42+
Use the following steps to install the OpenSSH Server Extension via PowerShell
43+
3344
1. Open a Windows PowerShell session as an administrator.
3445

3546
1. Run the following cmdlets to ensure that the required Azure CLI Extensions are installed:
@@ -50,13 +61,15 @@ Before you begin, ensure that you:
5061
```powershell
5162
$resourceGroup="<your resource group>"
5263
$serverName = "<your server name>"
64+
$location = "<your location>"
5365
$localUser = "Administrator" # Use a local admin account for testing
5466
```
5567

5668
1. Install the `OpenSSH` Arc Extension:
5769

5870
```powershell
59-
az connectedmachine extension create --name WindowsOpenSSH --location westeurope --type WindowsOpenSSH --publisher Microsoft.Azure.OpenSSH --type-handler-version 3.0.1.0 --machine-name $serverName --resource-group $resourceGroup
71+
az connectedmachine extension create --name WindowsOpenSSH
72+
--type WindowsOpenSSH --publisher Microsoft.Azure.OpenSSH --type-handler-version 3.0.1.0 --machine-name $serverName --resource-group $resourceGroup
6073
```
6174

6275
Here's a sample output:
@@ -110,36 +123,25 @@ Use the following steps to connect to Azure Local.
110123

111124
You're now connected to Azure Local over SSH:
112125

113-
```powershell
114-
Microsoft Windows [Version 10.0.20348.2655]
115-
(c) Microsoft Corporation. All rights reserved.
116-
117-
administrator@VMName C:\Users\Administrator>
118-
```
126+
:::image type="content" source="./media/connect-arc-vm-using-ssh/server-connection-6.png" alt-text="Screenshot of server connection over SSH." lightbox="./media/connect-arc-vm-using-ssh/server-connection-6.png":::
119127

120-
You're now connected to Server Manager.
121-
122-
:::image type="content" source="./media/connect-arc-vm-using-ssh/server-manager-dashboard-7.png" alt-text="Screenshot of the Server Manager Dashboard for Windows Server over SSH." lightbox="./media/connect-arc-vm-using-ssh/server-manager-dashboard-7.png":::
123-
124-
## Use RDP to connect to Azure Local
128+
## Use RDP over SSH to connect to Azure Local
125129

126130
1. To sign into Azure Local using RDP, run the following command with the RDP parameter:
127131

128132
```powershell
129133
az ssh arc --resource-group $resourceGroup --name $serverName --local-user $localUser --rdp
130134
```
131135

132-
1. Sign in to the local server for SSH.
136+
1. Sign in to the local server for RDP over SSH.
133137

134138
:::image type="content" source="./media/connect-arc-vm-using-ssh/server-login-dialog-for-ssh-arc-connection-5.png" alt-text="Screenshot of server sign-in dialog to connect to Windows Server over SSH." lightbox="./media/connect-arc-vm-using-ssh/server-login-dialog-for-ssh-arc-connection-5.png":::
135139

136140
1. Sign in to authenticate for RDP.
137141

138142
:::image type="content" source="./media/connect-arc-vm-using-ssh/rdp-login-dialog-for-ssh-arc-connection-6.png" alt-text="Screenshot of the RDP server sign-in dialog to connect to Windows Server over SSH." lightbox="./media/connect-arc-vm-using-ssh/rdp-login-dialog-for-ssh-arc-connection-6.png":::
139143

140-
1. You're now connected to Server Manager.
141-
142-
:::image type="content" source="./media/connect-arc-vm-using-ssh/server-manager-dashboard-7.png" alt-text="Screenshot of the Server Manager Dashboard for a Windows Server over SSH." lightbox="./media/connect-arc-vm-using-ssh/server-manager-dashboard-7.png":::
144+
:::image type="content" source="./media/connect-arc-vm-using-ssh/rdp-desktop-for-ssh-arc-connection-9.png" alt-text="Screenshot of the RDP desktop to connect to Windows Server over SSH." lightbox="./media/connect-arc-vm-using-ssh/rdp-desktop-for-ssh-arc-connection-9.png":::
143145

144146
You have set up an RDP tunnel over SSH into your Azure Local using Azure CLI without any VPN or open ports at your firewall.
145147

433 KB
Loading
22.8 KB
Loading

0 commit comments

Comments
 (0)