We have created a AKS cluster using az aks create .... --generate-ssh-keys ....
.
How/where can we find the SSH keys that were generated, so we can use them?
Thankx
Asked
Active
Viewed 4,085 times
2
![](../../users/profiles/138728.webp)
JoaoCC
- 295
- 1
- 3
- 8
-
it is in kube_config client_key base64 encoded if import cluster into terraform as data – asd.and.Rizzo Feb 09 '22 at 18:44
1 Answers
4
You can find the SSH keys from the output of this command az aks create .... --generate-ssh-keys
.
After you run this command, you can find your ssh key in that output.
You can find it in this path:
If you are use Linux, you can find it here:
so we can use them?
You can use that SSH key to login AKS agent:
ssh azureuser@52.170.1.* -i ~/.ssh/id_rsa
![](../../users/profiles/376644.webp)
Jason Ye
- 2,399
- 1
- 8
- 10
-
1Thx. Does this mean that if the files already existed, they were used when creating the cluster? – JoaoCC Jan 31 '18 at 20:57
-
1