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.
3 Answers
2
votes
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
1
votes
0
votes
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,[email protected],ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected],[email protected],[email protected],[email protected]
to see what public keys are supported on server:
ssh -Q key
.ssh/authorized_keysfiles for the other users? - nandhp/var/logand see if there are any better diagnostics from the SSH server. - nandhp