Skip to content

Commit 4bb30bb

Browse files
authored
Update ssh-connect-to-windows-and-linux-worker-nodes.md
1 parent 3cba865 commit 4bb30bb

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,27 @@ 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+
## Prerequisite
21+
### **Install the Kubernetes CLI**
22+
23+
You will use the Kubernetes CLI, [`kubectl`][kubectl], to connect to your Kubernetes cluster. If you use the Azure Cloud Shell, `kubectl` is already installed. If you're running the commands locally, you can use the Azure CLI or Azure PowerShell to install `kubectl`.
24+
25+
### [Azure CLI](#tab/azure-cli)
26+
27+
* Install `kubectl` locally using the [`az aks install-cli`][/cli/azure/aks?view=azure-cli-latest#az-aks-install-cli] command.
28+
29+
```azurecli-interactive
30+
az aks install-cli
31+
```
32+
33+
### [Azure PowerShell](#tab/azure-powershell)
34+
35+
* Install `kubectl` locally using the [`Install-AzAksCliTool`][/powershell/module/az.aks/install-azaksclitool?view=azps-14.2.0] cmdlet.
36+
37+
```azurepowershell-interactive
38+
Install-AzAksCliTool
39+
```
40+
2041
## Use SSH to connect to worker nodes
2142
2243
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)