Saturday, November 7, 2015

Secure yourself.

Linux commandment: Thall shall not login remotely as root.

If your a good linux admin, you did this when you first set up the machine.

$ cd /etc/ssh
$ sudo vim sshd_config

Change the line that says permit Root login to no
in vim should find the line quickly

# Authentication:
LoginGraceTime 120
# PermitRootLogin yes
PermitRootLogin no
StrictModes yes

Save and exit the file.

Restart the service:

$ sudo service ssh restart

No comments:

Post a Comment