Svj
Svj

Reputation: 491

unable to SSH into Azure Ubuntu VM after reboot

I have been using this VM (Azure ubuntu) for almost a month but had to restart to increase the disk size which was successful. I have preserved the IP address. But now unable to SSH. I also "reset configuration only" from the "Reset Password option". Also tried "test connection" within Azure Portal and that fails as well. But I am still able to access MySQL database which is running on the same VM. What am I doing wrong? enter image description here

Upvotes: 1

Views: 1277

Answers (1)

Svj
Svj

Reputation: 491

Finally, it worked. All I had to do was a reset via the CLI:

az vm user reset-ssh --resource-group myresourcegroup --name myvm

https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/vmaccess

Upvotes: 1

Related Questions