Saturday, September 24, 2011

// // Leave a Comment

How to Change The Default SSH Port.

To force or change the default SSH to run on a non standard port, use the following steps: 

1. Open /etc/ssh/sshd_config in your favorite text editor:


2. Look for the below lines: 



# Port 22

3. Uncomment and edit this line to change the default port.
For example you can set it to:


Port 99

4. Save the file, and restart the SSH.


/etc/init.d/ssh restart

NOTE: Removing the # will uncomment and you will need to remove this for any change in the port.

0 comments:

Post a Comment