where does the SSH private key get stored in Azure?

12.8k Views Asked by At

I'm new to Azure, sorry if my question sounds dumb. I use ssh-keygen to create public/private key pair in cloud shell, but where is my local location this private key get saved to? I wasn't prompted to provide a local path for storing this private key, so is the private ket get stored in Azure?

1

There are 1 best solutions below

0
On BEST ANSWER

When you use ssh-keygen, by default, the key pair was saved to the directory /home/user/.ssh on the Cloud Shell. You can download the files to your local machine via clicking Upload/Download files or persist files in Azure Cloud Shell.

enter image description here

For more information, read Overview of Azure Cloud Shell.