I am facing the issue in connecting server via putty. The error is showing me is "Server Refused our key: AWS – Disconnected: No supported authentication methods available (server sent:publickey)".
I am logging in with username " ubuntu ".I checked lots of websites but I didn't find any solution. I create a new key-pair file( .pem ) and tried again that's also is not working.
I am using the same key name for the pem file. Then using pem file I am creating a ppk file and then it is not working
Best Answer
When we convert your
.pem
file to.ppk
it creates a public and private key of it's own inside the.ppk
file like this:To connect to the server, you need to append the six lines of public key above into
authorized_keys
file in server user's/home/.ssh
directory.Note: Make sure the syntax is correct in
authorized_keys
file. For rsa keys it is like this:ssh-rsa AAA***(whole public key in one line without pressing enter)***