Saturday, May 24, 2014

Linux - How to disable Root SSH Login on Linux - 2

@ Prohibit root user from loginning in remote.

@ 1.Exclude the comment "#" and then
@    You need to check the "no"
$ vi /etc/ssh/sshd_config
#----------------------------------------
PermitRootLogin no
#----------------------------------------

@ 2. You’ll need to restart the sshd service.
$ /etc/init.d/sshd restart

No comments:

Post a Comment