Tuesday, August 21, 2007

establish ssh connection from different port

We all know that starting ssh daemon server listens by default to port number 22. Normally, any user connecting to port 22 would launch ssh client without any port number specification considering that ssh server was launched with default port 22 as its binded or listening ssh port number. Changing ssh default port number is one good practice of securing ssh.

Now, with the situation of having a non-default ssh port number, here is how to establish ssh connection to any ssh server with a different ssh port number or with non-default ssh port number.

How to connect to ssh server with a non-default port 22?

Assuming ssh server was started to listen from port 2221.

# ssh user@ssh.server.IP.address -p 2221

Done.

0 comments:

Sign up for PayPal and start accepting credit card payments instantly.
ILoveTux - howtos and news | About | Contact | TOS | Policy