Friday, 10 August 2012

Prevent direct root logins via SSH

Prevent direct root logins via SSH
=========

Edit /etc/ssh/sshd_config.

Search for "#PermitRootLogin yes" *If this line does not begin with a "#" add one.

Add below this line "PermitRootLogin no"

Restart sshd (service sshd restart)

No comments:

Post a comment

Note: only a member of this blog may post a comment.