change ssh port

1. Login into your server as a root user

pico -w /etc/ssh/sshd_config

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

Port 322
#Protocol 2,1
#AddressFamily any
#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

  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

Restore SSH Config via WHM

Problem login to SSH or forget your SSH port on cPanel Server, don't worry you can run this tools...

Fixing WHM problems automatically using JUPITER Tools :-D

Now you have angel hands for solving your WHM  related (selected) problems using JUPITER Tools ....

Full site backup and restore using Shell

You can generate full site backup from individual cPanel account. However, for some reason if you...

Cpanel/WHM Script List

WARNING: These scripts may not be "safe", they are mostly in perl so you can view them and check...

Resetting MySQL Root Password

The preceding sections provide password-resetting instructions for Windows and Unix...