Open SSH connection to the server, then:
1. Type:
nano /etc/ssh/sshd_config
2. Press CTRL+W to search and then type 'Port' to search for the word Port on the config file
3. Replace #Port 22 with Port 1234 (replace 1234 with a port number of your choice)
4. Press CTRL+X
5. Press Y and Enter
6. Type:
service sshd restart
Now you've changed the ssh port.
Note: Keep the current SSH session open and try to connect to the new SSH port from a new session to avoid losing connection in case the new port doesn't work.
Note 2: If you have a firewall installed, you need to open the new port on the firewall.
If you need help, please open a support ticket.