Wednesday, November 12, 2014

Disable Root remote SSH Logins

SSH server settings are stored in the /etc/ssh/sshd_config file. To disable root logins, make sure you have the following entry:

# vim /etc/ssh/sshd_config

# Prevent root logins:
PermitRootLogin no

Restart the sshd service:

# /bin/systemctl restart sshd.service

No comments: