I have an Ubuntu VM running on azure. I need to ssh connect to it but I have lost my private key since my home
partition has gone. So, I reinstalled the OS on my local machine and regenerated a new pair pf private/public keys -- which I am already using for github, bitbucket, ecc. Is there any way to set my new public key on the Ubuntu VM from the Azure Portal?
SSH keys are by default kept in the ~/. ssh directory. If you do not have a ~/. ssh directory, the ssh-keygen command creates it for you with the correct permissions.
To update your SSH key you first need to generate a new key as described here: Generate an SSH key pair. This should be done on your local machine (e.g. Windows / Linux / Mac). You MUST protect your key with a strong passphrase. Use a new, different passphrase whenever you generate a new key.
Actually, there is.
reset password
reset SSH public key
for the Mode
user
SSH public key
fieldUPDATE
button on top.Just tested and worked fine for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With