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: Multihomed Configuration

Subject: Re: Multihomed Configuration
Date: Fri, 8 Jun 2007 08:22:47 -0400
On Thu, Jun 07, 2007 at 12:06:12PM -0500, Dallas Clement wrote:
On Wed, 2007-06-06 at 22:32 +0530, Nirmal Babu Puliyadi Suriya Kumar -X
(npuliyad - HCL at Cisco) wrote:

But, Is it possible to assign/ configure different default directory for
each IP address with same login username?

I'd run two separate instances of sshd, one for each interface whose
behavior you want to be unique.  Give each one a separate config file,
which does whatever it is you need to do.

You could even run one of them inside a chroot, if that is the easiest
way to do whatever it is you want.

e69001# grep "ListenAddress" sshd_config
#ListenAddress 0.0.0.0
#ListenAddress ::
ListenAddress 172.23.87.109
ListenAddress 192.168.2.133

(You don't want to listen on loopback?!)

It's a shame to have to hard-configure both IP addresses in this config
file -- especially if you are getting them dynamically through DHCP.  I
wonder if there is a different way to enable sshd on both NICs without
specifying the IP address...

If he simply went back to

  ListenAddress 0.0.0.0
  ListenAddress ::

then it would listen on all the machine's interfaces.  That is the default.
Heck, he could even remove all the ListenAddress lines entirely, because
these *are* default settings.

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