Make SSH run on multiple ports -
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; edit /etc/ssh/sshd_config with your favourite editor, and find the line that says this
-Jonesy
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; edit /etc/ssh/sshd_config with your favourite editor, and find the line that says this
Port 22
add another one below it so it looks like thisPort 22
Port 222222
/etc/init.d/ssh restart
verify that it's listeningnetstat -anp |grep ssh
and you're done!-Jonesy


