Home   >>   SSH   >>   SSH On Multiple Ports
SSH On Multiple Ports PDF Print E-mail
( 0 Votes )
How To - SSH
Written by Christian Foronda   
Thursday, 18 February 2010 11:16

At some stage you may find that you need to run the ssh daemon on multiple ports, for example so that you can have it accessable on the normal port 22 from the internal network, but obscure it from outside snoopers by running it also on a second port, allowing the normal ssh port (22/tcp) to be blocked from outside.
Here’s how to do it;

    # vi /etc/ssh/sshd_config
Find the line
    Port 22
add another one below it. It should look like this:
    Port 22
    Port 2222
Restart sshd:
    # /etc/init.d/sshd restart
Verify
    # netstat -anp | grep ssh



blog comments powered by Disqus