Preventing Password and Root Logins2:52 with Jay McGavren
There are two more steps we should take to secure our server. First, since we want all our users to use SSH keys, we should prevent *any* user from logging in using a password. Second, it's still possible for someone to log in as the `root` account (which has full control of the system) if they can guess the password, so it's best to disable logging in as `root` completely.
- On the server:
sudo nano /etc/ssh/sshd_configand modify or add the following settings:
sudo service ssh restart
You need to sign up for Treehouse in order to download course files.Sign up