SSH Hardening – disable root login and change port.
The easiest way to secure SSH is to disable root login and change the SSH port to something different than the standard port 22.
Before disabling the root login create a new SSH user and make sure the user belongs to the admin group .
If you change the SSH port also open the new port you have chosen on the firewall and close port 22.
Open a Terminal Window and enter :
sudo vi /etc/ssh/sshd_config
Change the following and save.
Port <ENTER YOUR PORT>
Restart SSH server, open a Terminal Window and enter :
sudo /etc/init.d/ssh restart
Possibly Related Posts:
- FreeBSD -Apache22 Installation and troubleshooting
- FreeBSD: Apache 2.4 available in ports
- Kenya Google has been the victim of a cyber-attack
- Chinese hackers defaced the website of the government owned Philippines News Agency (PNA)
- How prepared is India for cyberwar