> 
> I am setting up a shell hosting system for a customer.  I want him to
> be able to use a limited shell on the machine, and I think a chroot
> jail is the best way.  How do I configure SSH so that he is plopped
> into the jail as soon as he logs in via ssh?

not sure this is an ssh issue...
one thing you could do is to write a small
piece of code which chroots the user into the jail &
use this as their login shell. that way they'll get
nailed regardless of which way they manage to login. 8-)

if you need to make a decision based on the ip
address a user connected to, chrootip may be useful:
ftp://ftp.obtuse.com/pub/utils/utils-1.0/README
it's good for virtual ips/hosts.

if you're using solaris - /usr/lib/rsh (man -s 1m rsh)
may be an easier alternative?

hope this helps,
pauline

Reply via email to