[CentOS] sshd: listen on ip1:port1 and ip2:port2

Tue Jan 24 13:06:25 UTC 2012
Peter Eckel <lists at eckel-edv.de>

Hi Eero, 

> How about using iptables to forward 443 to 22? I think it is the
> simplest way to do this hack.

no, the simplest way is to tell sshd on which port to listen on each interface. Which is extremely straightforward.

Redirecting ports to other ports IMHO is neither particularly simple nor maintenance-friendly ... don't do it unless there really is no other way, or the next guy who has to figure out in a hurry what the system does will really, really hate you ... :-)

Best regards, 

  Peter.