SSH private key password authentication
PermitRootLogin"without-password" vs "no"
WHM Terminal and sshd-config setting PermitRootLogin to no
PermitRootLogin to without-password or noWhat is the different?
whm SSH direct root logins are permitted
-------------------------------------------------------------
Root Account
-------------------------------------------------------------
So there are two simple ways to avoid the possibility of an attack to the root account
PermitRootLogin to without-password or noWhat is the different?
terminal
:
nano /etc/ssh/sshd_config
PermitRootLogin yes
yes
without-password or no
no
SSH Service .
-------------------------------------------------------------
: PermitRootLogin without-password
-------------------------------------------------------------
: root
Enable root access via ssh, but only with rsa key
Edit the file /etc/ssh/sshd_config Look for this line
#PermitRootLogin yes
And change it to: PermitRootLogin without-password
allows root, but *only* if keys are set up, or another form of authentication,'
but *not* password authentication; - it will deny even a valid password.
-------------------------------------------------------------
: PermitRootLogin no
-------------------------------------------------------------
: root
Disable root access via ssh to your server
Edit the file /etc/ssh/sshd_config Look for this line
#PermitRootLogin yes
And change it to: PermitRootLogin no
denies root all the time, even if keys have been set up for equivalence.