Server refused our key

 https://stackoverflow.com/questions/11614254/server-refused-our-key-after-launching-instance-from-private-ebs-ami

In AWS Servers with different tools, the ssh key doesn't work

Error usually faced is

Server refused our key
No supported authentication methods available (server sent: publickey)

open the /etc/ssh/sshd_config file and add the below code

PubkeyAcceptedAlgorithms +ssh-rsa

and save the file and systemctl restart sshd to restart the sshd service or in some cases like now in ubuntu 23 or etc. we can restart the service systemctl restart ssh Hopefully you key will work perfectly


I was using PuTTY 0.74 and got No supported authentication methods available (server sent: publickey). After upgrading to PuTTY 0.77 the problem is gone.

Không có nhận xét nào:

Check to be sure that port 22 is enabled before you reload

 https://superuser.com/questions/590600/ufw-is-active-but-not-enabled-why etting  ENABLED=yes  in  /etc/ufw/ufw.conf  did it for me. $ sudo ...