Skip to content

Commit e9c7c9a

Browse files
authored
Merge pull request #18342 from leslielin-5/patch-50
Update ssh-connect-to-windows-and-linux-worker-nodes.md
2 parents 0ee07ae + 2693238 commit e9c7c9a

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

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

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
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.
4-
ms.date: 01/10/2025
4+
ms.date: 07/02/2025
55
ms.topic: how-to
66
author: sethmanheim
77
ms.author: sethm
88
ms.reviewer: leslielin
9-
ms.lastreviewed: 01/10/2025
9+
ms.lastreviewed: 07/02/2025
1010
---
1111

1212
# Connect to Windows or Linux worker nodes with SSH
@@ -17,6 +17,28 @@ During your AKS Arc cluster's lifecycle, you might need to directly access clust
1717

1818
This article explains how to use SSH to connect to both Windows and Linux nodes.
1919

20+
## Prerequisites
21+
22+
### **Install the Kubernetes CLI**
23+
24+
You can use the Kubernetes CLI, [**kubectl**](https://kubernetes.io/docs/reference/kubectl/), to connect to your Kubernetes cluster. If you use Azure Cloud Shell, **kubectl** is already installed. If you run the commands locally, you can use the Azure CLI or Azure PowerShell to install **kubectl**.
25+
26+
### [Azure CLI](#tab/azure-cli)
27+
28+
* Install **kubectl** locally using the [`az aks install-cli`](/cli/azure/aks?view=azure-cli-latest&preserve-view=true#az-aks-install-cli) command:
29+
30+
```azurecli-interactive
31+
az aks install-cli
32+
```
33+
34+
### [Azure PowerShell](#tab/azure-powershell)
35+
36+
* Install **kubectl** locally using the [`Install-AzAksCliTool`](/powershell/module/az.aks/install-azaksclitool?view=azps-14.2.0&preserve-view=true) cmdlet:
37+
38+
```azurepowershell-interactive
39+
Install-AzAksCliTool
40+
```
41+
2042
## Use SSH to connect to worker nodes
2143

2244
1. To access the Kubernetes cluster with the specified permissions, you must retrieve the certificate-based admin **kubeconfig** file using the [az aksarc get-credentials](/cli/azure/aksarc#az-aksarc-get-credentials) command. For more information, see [Retrieve certificate-based admin kubeconfig](retrieve-admin-kubeconfig.md):

0 commit comments

Comments
 (0)