You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: azure-local/manage/connect-arc-vm-using-ssh.md
+25-23Lines changed: 25 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,31 +5,42 @@ author: alkohli
5
5
ms.author: alkohli
6
6
ms.topic: how-to
7
7
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.
9
11
---
10
12
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
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.
16
18
17
19
## More about the SSH Server Extension
18
20
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).
22
22
23
23
## Prerequisites
24
24
25
25
Before you begin, ensure that you:
26
26
27
27
1. Have access to Azure Local that is running the latest version of software.
28
28
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.
30
36
31
37
:::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":::
32
38
39
+
40
+
### Install the OpenSSH Server Extension via PowerShell
41
+
42
+
Use the following steps to install the OpenSSH Server Extension via PowerShell
43
+
33
44
1. Open a Windows PowerShell session as an administrator.
34
45
35
46
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:
50
61
```powershell
51
62
$resourceGroup="<your resource group>"
52
63
$serverName = "<your server name>"
64
+
$location = "<your location>"
53
65
$localUser = "Administrator" # Use a local admin account for testing
@@ -110,36 +123,25 @@ Use the following steps to connect to Azure Local.
110
123
111
124
You're now connected to Azure Local over SSH:
112
125
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":::
119
127
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
125
129
126
130
1. To sign into Azure Local using RDP, run the following command with the RDP parameter:
127
131
128
132
```powershell
129
133
az ssh arc --resource-group $resourceGroup --name $serverName --local-user $localUser --rdp
130
134
```
131
135
132
-
1. Sign in to the local server for SSH.
136
+
1. Sign in to the local server for RDP over SSH.
133
137
134
138
:::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":::
135
139
136
140
1. Sign in to authenticate for RDP.
137
141
138
142
:::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":::
139
143
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":::
143
145
144
146
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.
0 commit comments