Reset VM Password
Overview
If for some reason you cannot SSH into your VM using your
Linux admin user (e.g. azureuser
), you can reset your
credentials via the Azure Portal.
Reset your Credentials
If your VM already exists, you can still set the public key.
Under the VM details page, go to Reset password.
This page gives you the option to Reset SSH public key, and to set your SSH public key.
You can also create a new Linux admin user, with a different username.
Note: Be careful not to select Reset configuration only
, because this will
wipe out the SFTP Gateway specific settings in the /etc/ssh/sshd_config
file.