I restarted sshd, but still gives this error…
eskTdBMBQG
I restarted sshd, but still gives this error…
eskTdBMBQG
How are you currently accessing the server?
ssh, with a private key and passphrase
Okay, so your private key pair has a passphrase? When you log into your server, does it confirm that you logged in using key? If you have trouble telling the difference, do you use your server user passhprase to log in or your private key pair passphrase to log in?
It is important to verify you are logging in using the key pair so you do not lock yourself out of the server.
Well, I am not sure, could you please tell me how? right now they are identical, so no way to tell… ( I know I know, bad practice, lol )
Run:
$ tail /var/log/auth.log
And one of the lines should include:
Accepted publickey for username from <IP address>...
Bingo, looks good. What’s next?
Run:
$ grep PasswordAuthentication /etc/ssh/sshd_config
Paste results here.
PasswordAuthentication no
PasswordAuthentication yes
I see, I forgot to comment out the old one… Let me try and will keep you posted.
Also make sure you have:
PermitRootLogin no
Alright, looks good. I guess we can archive this thread. Thanks a lot for you help!!
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.