I have followed the sshd hardening and now I can not login via SSH and get the following error;
The only way for me to login via SSH now is to login via browser and enable "SSH Password Authorization Tweak", then use a user account to login and then sudo to root.
If I keep "SSH Password Authorization Tweak" enabled for too long I get too many invalid attempts that are blocked by Bruteforce.
Someone suggested here that I should do PermitRootLogin without-password in sshd_config setting, but that goes against the ssh hardening guide so I do not want to do it.
The public key is authorized under "Manage root’s SSH Keys" and I am using putty and have not tried anything else (what other ssh software should I try if I have to?).
Edit: Just to make sure I am doing it right, here is what I do to SSH.
Code:
Server refused public key despite accepting key
no supported authentication methods available (server sent publickey gssapi-keyex gssapi-with-mic)
If I keep "SSH Password Authorization Tweak" enabled for too long I get too many invalid attempts that are blocked by Bruteforce.
Someone suggested here that I should do PermitRootLogin without-password in sshd_config setting, but that goes against the ssh hardening guide so I do not want to do it.
The public key is authorized under "Manage root’s SSH Keys" and I am using putty and have not tried anything else (what other ssh software should I try if I have to?).
Edit: Just to make sure I am doing it right, here is what I do to SSH.
- Start Putty and enter the hostname
- SSH > Auth and then browse and open the .ppk file WHM created for me earlier (after entering the password)
- in the panel I use login name root
- and then enter the password for the key I created earlier to run into the error above.
Last edited: