problem with setting up ssh chroot account

Garey Mills garey.mills at gmail.com
Wed Mar 28 04:53:37 EST 2012


Dag-Erling -

    Thanks for the response. Definitely changed the error message. Now I'm
getting

            Mar 27 11:34:52 dlab-gis sshd[11121]: error: open /dev/tty
failed - could not set controlling tty: Permission denied

    Any thoughts?

Garey Mills


On Tue, Mar 27, 2012 at 10:46 AM, Dag-Erling Smørgrav <des at des.no> wrote:

> garey <garey.mills at gmail.com> writes:
> > I am trying to set up a ssh chroot account on a Red Hat Enterprise
> > Linux 5 server. I have my jail set up and have copied over a selection
> > of commands and their libraries. I have also created a / dev and some
> > devices. As part of that, I had to create a /dev/pts directory to
> > handle the terminals.
> >
> > However, when I try to connect as the chrooted user, I get the
> > following error:
> >
> >                          error: /dev/pts/0: No such file or directory
> >
> > Does anyone know how to solve this problem?
>
> /dev/pts is not a regular directory, it's a mountpoint for the synthetic
> devpts filesystem.  You need to mount a devpts instance inside the
> chroot:
>
> # mkdir /chroot/dev/pts
> # mount -t devpts devpts /chroot/dev/pts
>
> DES
> --
> Dag-Erling Smørgrav - des at des.no
>



-- 
The brain is not where you think.
Me


More information about the openssh-unix-dev mailing list