Re: sshd: listen on ip1:port1 and ip2:port2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



2012/1/24 Alexander Farber <alexander.farber@xxxxxxxxx>:
> 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_old_ip:22
> but also at the_new_ip:443.
>
> The 443 on the_old_ip is already taken by Apache,
> so I can't just write "Port 22" + "Port 443" to sshd_config.

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

--
Eero
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux