Search code examples
azuressh-keysubuntu-server

Unable to add ssh key in azure vm


I am the admin of this particular azure subscription. I had to add my ssh key to a ubuntu server. But when I try to add the ssh key through "Reset Password", After sometime I'll get the following error message.

VM agent on VM 'Server' has not reported latest status for extension 'enablevmaccess'. Please verify the VM has a running VM agent and can establish outbound connections to Azure storage.

What might be the issue? How to resolve this?

Failed to reset ssh key

vmaccess is enabled


Solution

  • Two simple thing you might try;

    1. Uninstall the VMAccess extension and try reset again.
    2. Use the 'Run Command' to set/reset password.

    enter image description here

    Hope this helps.