Re: SSH on two ports
On Saturday 14 January 2006 13:00, Michael Przysucha wrote:
> Hello,
>
> I want to use ssh on two ports, 22 (standart) and 666. Can anybody
> tell how to configure it? My first thought was to simply add the
> second port nubmer in the configuration but did not work. Second was
> to set up iptables route the port but seems to be a bit to oversized!?
Just edit /etc/ssh/sshd_config and add the following two lines near the
top. (Then run `/etc/init.d/ssh restart` of course.)
Port 22
Port 666
If you aren't doing anything complicated like running them on different
network interfaces, that's sufficient.
HTH,
Adam
Reply to: