CentOS Linux 5/6: Change OpenSSH Port Number
To change the OpenSSH port number on CentOS Linux 5/6, you need to edit the sshd_config file. Here’s how: Open the sshd_config file: sudo nano /etc/ssh/sshd_config Locate the line that starts with Port: Port 22 Change the port number to the desired value (e.g., 2222): Port 2222 Save the changes and close the file. Restart … Read more