Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Secure-Shell
[Top] [All Lists]

Re: Two SSH servers on the same machine

Subject: Re: Two SSH servers on the same machine
Date: Thu, 6 Dec 2007 10:53:27 -0500 (EST)
Richard Blasiak wrote:
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've had some off-list replies to my inquiry, as well, and they also seem to
suggest there is no sshd-specific way to solve my problem.  I was planning
to do what you have suggested, but I thought I'd ask if I could do it
entirely inside sshd_config first.

Thanks.

Colin


<Prev in Thread] Current Thread [Next in Thread>