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.
