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
#Protocol 2,1
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::
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