Change Default SSH port on CentOS Print

  • 0

This Article describes how to change SSH port on CentOS VPS or dedicated server. By default standerd SSH port is 22.

STEP1
Edit SSH configuration file.
#nano /etc/ssh/sshd_config

STEP2
Add the follwong code to /etc/ssh/sshd_config file

#SSH PORT 
Port 3456

Save the file and restart the SSH service by running the following command
# service sshd restart

NOTE: Make sure open the port from firewall before restart the service.



Was this answer helpful?

« Back