R-Ts NetWorks

Server the Best

Changing the default port for SSH

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
Port x

Replace ‘x’ with the required port number.

Restart sshd :

/etc/init.d/sshd restart


October 13, 2012 - Posted by | Linux

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: