For security reason, it is recommended that you change your server default SSH port from 22 to any other port. We have a detailed step by step tutorial for changing SSH port.
How to change SSH port of a Linux server
But if you have forgot your server new SSH port number, or if the new SSH port is blocked at server, here is how you can reset SSH port back to default 22 port on a cPanel server.
Login in WHM of your server using root.
Add following url at the end of your WHM url and run it.
The final url may be like:
Your server SSH port is now reset to default 22. If its not working, you may need to restart SSH from
WHM >> Restart Services >> SSH Server