Share via


How to add SSH Keys to existing Linux VM on microsoft Azure

Question

Monday, January 15, 2018 9:03 AM

Hi, i created a (secured) linux VM with micosoft azure using this link /en-us/azure/virtual-machines/linux/tutorial-secure-web-server i got the public address but the homepage did not show. so i tried remoting to the server but i had not added an SSH Key, How can i add an SSH key to this VM so that i can remote to it, add an index page and check if it shows https on the browser?

Easy

All replies (3)

Monday, January 15, 2018 10:09 AM âś…Answered

You may refer the below article if you are using Windows OS:

/en-us/azure/virtual-machines/linux/ssh-from-windows

You may refer the below article if you are using Linux OS:

/en-us/azure/virtual-machines/linux/mac-create-ssh-keys

Do click on "Mark as Answer" on the post that helps you, this can be beneficial to other community members


Monday, January 15, 2018 10:20 AM

I have Keys which i would want to use. Normally i would have added the SSH public Key from my azure home in order to create a VM that use the public key but couldn't do that because i created the secure VM from azure CLI. So my question is how do i add these already existing keys to my already created azure VM?

Easy


Tuesday, January 16, 2018 6:26 PM

Refer to the suggestion mentioned in the below article
https://azure.microsoft.com/en-us/blog/using-vmaccess-extension-to-reset-login-credentials-for-linux-vm/

Do click on "Mark as Answer" on the post that helps you, this can be beneficial to other community members