Changing the default port for SSH
admin | Nov 26, 2009 | Comments 0
Issue :
How to change the default port for SSH?
Solution :
Open the port (which you want to use for SSH) in the server firewall and restart the firewall to apply the change.
Then, open the configuration file /etc/ssh/sshd_config using your favorite editor and change :
#Port 22
to
Port x
Replace ‘x’ with the required port number.
Restart sshd :
/etc/init.d/sshd restart
Filed Under: Quick fixes • Technical
About the Author: InstaCarma is a provider of Enterprise Class Solutions for the Hosting Industry

1800 810 6547