[CentOS] Running two sshd's

Tue Oct 31 18:22:27 UTC 2006
first last <prelude_2_murder at yahoo.co.uk>

> Gilles CHAUVIN wrote:
> > Hi all,
> >
> > I'm wondering whether it is feasible or not to run two distinct
> sshd
> > daemons with different config options!
> >
> > I have a CentOS 4.4 gateway with 2 Ethernet interfaces. One is
> > connected to the Internet and the other to the LAN.
> >
> > Basically, what I would like to do is having a sshd that listens to
> > the LAN interface with password enabled auth. and a sshd bound to
> the
> > Internet interface with forced key auth. (no password auth.
> allowed).
> >
> > I'm not sure that such a thing is possible using a single
> sshd_config
> > file. What do you think would be the best way to do this? Is there
> > someone here that already made a similar setup?
> >
> > Thanks for any help / ideas.
> >

We have done that using a chroot in different ports and it is extremely
easy, but that might not be useful to you.

Gabriel



> > Regards,
> > Gilles.
> > _______________________________________________
> > CentOS mailing list
> > CentOS at centos.org
> > http://lists.centos.org/mailman/listinfo/centos
> >
> 
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
> 


Send instant messages to your online friends http://uk.messenger.yahoo.com