when i run security advisor, i cant change /etc/ssh/sshd_config in terminal WHM.
i try this code. but i cant save.
or
SSH direct root logins are permitted.
Manually edit /etc/ssh/sshd_config and change PermitRootLogin to “without-password” or “no”, then restart SSH in the “Restart SSH” area
i try this code. but i cant save.
Code:
sed -i '/^PermitRootLogin/s/yes/no/' /etc/ssh/sshd_config
Code:
vi /etc/ssh/sshd_config
Code:
#PermitRootLogin no
SSH direct root logins are permitted.
Manually edit /etc/ssh/sshd_config and change PermitRootLogin to “without-password” or “no”, then restart SSH in the “Restart SSH” area