Reset SSH access in virtual machine if you have lost it . | Azure portal



The Azure portal provides a quick way to reset the SSH configuration or user credentials without installing any tools on your local computer.

Troubleshoot SSH connections to an Azure Linux VM that fails, errors out, or is refused

To begin, select your Virtual Machine in the Azure portal. Scroll down to the Support + Troubleshooting section and select Reset password as in the following example:

Reset SSH credentials for a user
*************************************
To reset the credentials of an existing user, select either Reset SSH public key or Reset password in the Mode section as in the preceding screenshot. Specify the username and an SSH key or new password, then select Update.

You can also create a user with sudo privileges on the VM from this menu. Enter a new username and associated password or SSH key, and then select Update.

Using powershell
*********************
az vm user update –resource-group myResourceGroup –name myVM
–username myUsername –ssh-key-value ~/.ssh/id_rsa.pub

#Azure tutorial # Azure virtual machine troubleshooting #ssh configuration reset

subscribe to my channel
https://www.youtube.com/watch?v=6surgG1Oxqc?sub_confirmation=1

2 thoughts on “Reset SSH access in virtual machine if you have lost it . | Azure portal

Leave a Reply

Your email address will not be published. Required fields are marked *