folding-at-cloud icon indicating copy to clipboard operation
folding-at-cloud copied to clipboard

Add option to specify an existing SSH key for Azure VM

Open lumaxis opened this issue 4 years ago • 3 comments

Maybe people would like to specify an existing SSH key or a specific key used for Azure work instead of generating a new key each time

lumaxis avatar Mar 16 '20 14:03 lumaxis

I am not sure if it actually generates a new key every time. I think it looks in $HOME/.ssh/id_rsa* and if something exists it will use it. I forget where in the docs I saw that, but I will try and track it down.

gorzell avatar Mar 16 '20 16:03 gorzell

True!

Generate SSH public and private key files if missing. The keys will be stored in the ~/.ssh directory.

From az vm create

lumaxis avatar Mar 16 '20 21:03 lumaxis

Still, I'd like to use a separate, existing SSH key for all things Azure, so being able to specify that would be nice.

lumaxis avatar Mar 16 '20 21:03 lumaxis