Securing SSH - jacob-dinapoli/tech-journal GitHub Wiki
- In order to disable SSH root login within Linux, you first need to create a new user
- Then you need to drop priveleges to root account by using the following command:
- Opening a text editor
- You need to open the main SSH configuration file by typing the following command:
- vi /etc/ssh/sshd_config
- Search the file until you see "Permit Root Login"
- Change the yes to a no
- Restart the SSH system
- systemctl restart sshd
- service sshd restart