I can not login to SSH

SSTTweb

Newbie
Joined
May 27, 2021
Messages
20
Reaction score
8
I have a question about Linux server management.
I'm using Putty on CentOS.

For security reason,I setted root login prohibited and password authentication prohibited.
I want to login with only key authentication.
I made the settings like this.

PermitRootLogin no
PasswordAuthentication no

Then,suddenly I couldn't log in using key authentication.
I added a user with the adduser command, but I can't log in either.

Until I changed these, I was able to log in as root with key authentication normally.

The Putty screen says Server refused our key, and the dialog says,

No supported authentication methods available (server sent: publickey.gssapi-keyex, gssapi-with-mic)

I would be grateful if you could give me some advice.
 
Back
Top