Re: Two SSH servers on the same machine - openssh

This is a discussion on Re: Two SSH servers on the same machine - openssh ; Colin,
When the DHCP client recieves a new IP address it invokes a script called
/sbin/dhclient-script . This script has hooks to call user-provided
scripts if they exist on enty and on exit. Try "man dhclient-script" or
google "linux man ...

Re: Two SSH servers on the same machine

Colin,

When the DHCP client recieves a new IP address it invokes a script called
/sbin/dhclient-script . This script has hooks to call user-provided
scripts if they exist on enty and on exit. Try "man dhclient-script" or
google "linux man dhclient-script" for more information. You should be
able to use this to dynamically adjust your sshd_config file specifying
the new ListenAddress. Then send SIGHUP to sshd to cause it to re-read
the sshd_config file

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.