1 minute reading time
(234 words)
Azure VM - Putty SSH public key error "No supported authentication methods available"
SOLVED: How to fix error "No supported authentication methods available" by resetting the Azure Virtual Machine's SSH public key
SSH Error - No supported authentication methods available
Error when trying to connect to an Azure VM using SSH - No supported authentication methods available
Steps to fix "No supported authentication methods available"
1. Generate a public private key pair using Putty Key Generator
Open Putty Key Generator
Click Generate to create a new public/private key pairEnter a key comment and passphrase
Copy the new public key and paste it into notepad
Save the private key file
2 Reset Azure Virtual Machine SSH public key
Reset the VMs SSH public key from the Azure portal
Virtual Machine
Help - Reset password - Reset SSH public key
Enter the username and paste the public key
Paste the public key from notepad rather than from Putty Gen. The key should be all on one line with no line breaks
3 Connect to Azure VM using SSH key
Open Putty and select the private key file
Connection - SSH - Auth - Credentials - select private key
Connect to the Azure VM
Enter the host name and port, then click open
Comments