Changing your SSH port on your Linux system is a simple way to help increase security. It is a simple process which can be reversed at any time.
- Log onto your Linux system using SSH
- Go to the ssh config folder using the command #cd /etc/ssh
- Edit the sshd_config file using the command #vi sshd_config
- Add the line PORT 999 where 999 is the number for the port you want to use
- Save the file
- Restart SSH using service sshd restart
- Amend any firewalls you have setup to allow connection through your new port
- Log off SSH and then log back on now using the command:ssh username@111.111.111.111 -p 999 - again 999 being the new SSH port