Fix: Disconnected No Supported Authentication Methods Available – AWS Putty
If you attempt to Putty (SSH) into an Amazon Web Services (AWS) Linux or Windows Amazon Machine Instance (AMI) instance, you may receive an error similar to below.
Disconnected: No supported authentication methods available
(server sent: publickey,gssapi-keyex,gssapi-with-mix)
You are most likely using an incorrect login username combination along with a private key. Per Amazon documentation here, use the following default login/usernames when connecting to your AMI instance.
- For an Amazon Linux AMI, the user name is ec2-user.
- For a Centos AMI, the user name is centos.
- For a Debian AMI, the user name is admin or root.
- For a Fedora AMI, the user name is ec2-user or fedora.
- For a RHEL AMI, the user name is ec2-user or root.
- For a SUSE AMI, the user name is ec2-user or root.
- For an Ubuntu AMI, the user name is ubuntu or root.
Otherwise, if ec2-user and root don't work, check with the AMI provider.
If you are using the OS: