user9623401
user9623401

Reputation:

where does the SSH private key get stored in Azure?

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?

Upvotes: 3

Views: 13694

Answers (1)

Nancy Xiong
Nancy Xiong

Reputation: 28264

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.

Upvotes: 1

Related Questions