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

2012-01-24 Thread Marc Deop
On Tuesday 24 January 2012 14:06:25 Peter Eckel wrote: > 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 ... +1 I've been there... Regards ___ CentOS

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

2012-01-24 Thread me
On Tue, 24 Jan 2012, Peter Eckel wrote: > On 24.01.2012, at 13:23, Alexander Farber wrote: > >> I'd like SSHd to keep listening at the_old_ip:22 but also at the_new_ip:443. > > # man sshd_config: > > ListenAddress > Specifies the local addresses sshd should listen on. The > follo

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

2012-01-24 Thread Alexander Farber
Thank you! And sorry for not re-reading the "man sshd_config"! I guess, I was too stressed by having to configure my 2nd IP address :-) Regards Alex ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

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

2012-01-24 Thread Peter Eckel
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 n

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

2012-01-24 Thread Peter Eckel
Hi Fabien, > In order to do so, you just need to add in /etc/ssh/sshd_config: > Port 22 > Port 443 > > Then reload the ssh service. that will lead to sshd listening on both ports for both interfaces, so it's not what Alex needs. Best regards, Peter.

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

2012-01-24 Thread Peter Eckel
On 24.01.2012, at 13:23, Alexander Farber wrote: > I'd like SSHd to keep listening at the_old_ip:22 but also at the_new_ip:443. # man sshd_config: ListenAddress Specifies the local addresses sshd should listen on. The following forms may be used: ListenAdd

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

2012-01-24 Thread Fabien Archambault
2012/1/24 Alexander Farber > Hello, > > with CentOS 6.2 - is it possible to configure OpenSSH > daemon to listen on different IPs _and_ ports? > > I have received a 2nd IP address for my server > and have successfully configured by adding the new > "/etc/sysconfig/network-scripts/ifcfg-eth0:1" fi

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

2012-01-24 Thread Eero Volotinen
2012/1/24 Alexander Farber : > Hello, > > with CentOS 6.2 - is it possible to configure OpenSSH > daemon to listen on different IPs _and_ ports? > > I have received a 2nd IP address for my server > and have successfully configured by adding the new > "/etc/sysconfig/network-scripts/ifcfg-eth0:1" fi

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

2012-01-24 Thread Alexander Farber
Hello, with CentOS 6.2 - is it possible to configure OpenSSH daemon to listen on different IPs _and_ ports? I have received a 2nd IP address for my server and have successfully configured by adding the new "/etc/sysconfig/network-scripts/ifcfg-eth0:1" file. I'd like SSHd to keep listening at the