user1789529
user1789529

Reputation: 21

Putty fatal error Disconnected: no supported authentication methods available.

I am connecting to a Ubuntu server via Putty and keep getting "Disconnected: no supported authentication methods available. Server refused our key." I am able to connect as ubuntu (superuser) but not as any other user. I am using Amazon web services if that helps.

Upvotes: 2

Views: 10286

Answers (3)

Igor
Igor

Reputation: 2419

Look like sshd server does not accept ssh-dss public key for authentication. Just add to /etc/ssh/sshd_config key PubkeyAcceptedKeyTypes and add value ssh-dss

PubkeyAcceptedKeyTypes ssh-ed25519,ssh-ed25519-cert-v01@openssh.com,ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com

to see what public keys are supported on server:

ssh -Q key

Upvotes: 0

greg_diesel
greg_diesel

Reputation: 3005

Amazon actually has a guide for setting up Putty on Windows to connect to your AWS instances. It even details WinSCP for secure transfer of files. Pretty helpful guide.

http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html

Upvotes: 2

Michael McGarrah
Michael McGarrah

Reputation: 585

Permissions on the files in .ssh need to be restricted as well. Manpage has something on this. Also try with the logging in putty up and let us see the error from client. Also check server side /var/logs messages or syslog file.

Upvotes: 1

Related Questions