Changing the SSH port
Changing your SSH port reduces the security exposure of your server.
-
Open the SSH configuration file:
pico -w /etc/ssh/sshd_config -
Find this line in the file:
#Port 22Remove the
#at the start and replace22with the port number you want to use. -
Press Ctrl + X to save and exit.
-
Restart the SSH service:
/etc/rc.d/init.d/sshd restart