Two SSH servers on the same machine

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

 



Greetings.

I have a chroot jail used for mod_perl and PostgreSQL development to which I have assigned (in my head, to segregate services) a virtual IP. Outside the jail, one OpenSSH server runs, and I'd like to run another inside the jail.

The problem I'm facing is that I want the jailed SSH server to use one IP and the un-jailed SSH server to use the remaining IPs on the machine.

I'm familiar with the ListenAddress directive, but this doesn't seem to be a solution to my problem because one of the un-jailed IPs is dynamic.

My ideal solution would be to tell the un-jailed SSH server to "use all IPs except 192.168.171.100", but I don't know if this is possible.

Here's a synopsis of the configuration.

Un-jailed IPs:
eth0    a.b.c.d          dynamic
eth3    192.168.171.65   static
lo      127.0.0.1/8      static

Jailed IP:
eth3:0  192.168.171.100  static

The machine is running OpenSSH_4.3p2 Debian-9, OpenSSL 0.9.8e 23 Feb 2007.

I'd appreciate any configuration tips.  Thanks!

Colin

[Index of Archives]     [Open SSH Unix Development]     [Fedora Users]     [Fedora Desktop]     [Yosemite Backpacking]     [KDE Users]     [Gnome Users]

  Powered by Linux