First, choose any other port than 22, this will prevent hacking bots, which continually attack port 22 but you can choose any port you want, any number between 0 to 65535. So, choose a number between 0 and 65535, for this example, I am going to use port 99.
First, type the following and add port tcp to your firewall:
Next, edit the ssh config file by typing:
Change the following line:
# Port 22
to: Port 99
service sshd restart
to restart SSH. Next time you login, make sure to CHANGE PORT from 22 to the port you changed it to!
Next, MAKE SURE YOU HAVE A SECURE PASSWORD, if you do not, you can easily change your password by typing: passwd