Reputation: 21
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
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
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
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