Lab 5 Securing SSH - nrubera/SYS-255-03-Tech-Journal GitHub Wiki

Securing SSH is fairly straight forward. First you must open the /etc/ssh/sshd_config file using a text editor. Once you do that you want to navigate a page or two in until you find the file listed below:

image

Once you find it, change the PermitRootLogin from "yes" to "no". After that add a lone below that says "#AllowUsers username", replace username with a user you have on the machine so you do not accidentally lock yourself out of the machine.