1. Login into your server as a root user
Find the line '#Port 22' and uncomment it and change it to look like 'Port [Random high level port here]'.
For example we changes the port no22 to port no 322
Now save the file and retsrat ssh service
If you have nay firewall then open the port no 322 in your server firewall and try to access server with the new SSH port