Change SSH Port (CentOS)

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)

  • SSH
  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

How to Install New Os Or Reinstall Current Os

To install or reinstall os in your vps you need to login on our VPS Management Panel To login on...

How to Test Internet Speed of Your VPS/Server

How to Install SpeedTest CLI Step 1 – Login to your VPS as root or any user with superuser...

How To Install cPanel

What is cPanel?cPanel is a web-based hosting control panel provided by many hosting providers to...

How to install Pyxsoft Anti Malware for cPanel server

How to install Pyxsoft Anti Malware for Cpanel Servers Today We Learn How to Install pyxsoft and...

How to Install Softaculous on cPanel/WHM

What is Softaculous for cPanel ? Softaculous is integrated into cPanel and can be installed...