Skip to content

Commit ddc9887

Browse files
Merge pull request #16915 from leslielin-5/patch-26
Update ssh-connect-to-windows-and-linux-worker-nodes.md
2 parents 38260de + 74a73a6 commit ddc9887

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

AKS-Arc/ssh-connect-to-windows-and-linux-worker-nodes.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
title: Connect to Windows or Linux worker nodes with SSH
33
description: Learn how to use SSH to connect to Windows or Linux worker nodes in an AKS Arc cluster.
44
ms.date: 01/10/2025
@@ -31,14 +31,22 @@ This article explains how to use SSH to connect to both Windows and Linux nodes.
3131
kubectl --kubeconfig /path/to/aks-cluster-kubeconfig get nodes -o wide |
3232
```
3333

34-
1. Run `ssh cloud@<IP address of the node>` to connect to a worker node:
34+
1. Run `ssh` to connect to a worker node:
3535

3636
> [!NOTE]
3737
> You must pass the correct location to your SSH private key. The following example uses the default location of **~/.ssh/id_rsa**, but you might need to change this location if you requested a different path. To change the location, see [Configure SSH keys](configure-ssh-keys.md) to specify the `--ssh-key-value` parameter when you create an AKS Arc cluster.
3838
39+
For a Linux worker node, run the following command:
40+
3941
```azurecli
4042
ssh -i $env:USERPROFILE\.ssh\id_rsa clouduser@<IP address of the node>
4143
```
44+
45+
For a Windows worker node, run the following command:
46+
47+
```azurecli
48+
ssh -i $env:USERPROFILE\.ssh\id_rsa Administrator@<IP address of the node>
49+
```
4250

4351
If you encounter SSH login issues, verify that your IP address is included in the **--ssh-auth-ip list**. To check this list, run `az aksarc show --name "$<aks_cluster_name>" --resource-group "$<resource_group_name>"` and look for `authorizedIpRanges` under `clusterVmAccessProfile`.
4452

0 commit comments

Comments
 (0)