Dev License: This installation of WHMCS is running under a Development License and is not authorized to be used for production use. Please report any cases of abuse to abuse@whmcs.com

Changing SSH Port (CentOS) Print

  • 1

It is always dangerous to run SSH on port 22. So better not to be late one should always change SSH Port to something other. Below is a method to change ssh port.

A) Login to your server through PUTTY

B) Run the commands below:

nano /etc/ssh/sshd_config

search for the line #Port 22 . Uncomment it and change 22 to something else. Press ctrl+o to save and press x to exit.

C) Restart SSH

service sshd restart

*Note: If nano is not installed run (yum -y install nano)


Was this answer helpful?

« Back