Select Page

SSH Disabling Direct Root Login

Disabling root login will force any attempted hackers to use 2 passwords instead of only one. Making it more difficult for a hacker to break into your server.

You must have another user which is NOT root already on the box

vi /etc/ssh/sshd_config

Search for line

PermitRootLogin yes

and change it to

PermitRootLogin no

restart sshd by typing
/etc/init.d/sshd restart

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments

Categories

0
Would love your thoughts, please comment.x
()
x