You can change the ssh port by following commend
nano /etc/ssh/sshd_config
Change
#Port 22
to
Port * (any port)
Also make sure to open your firewall.
then restart sshd by following commend
service sshd restart
nano /etc/ssh/sshd_config
service sshd restart