problem with setting up ssh chroot account

Dag-Erling Smørgrav des at des.no
Wed Mar 28 04:46:17 EST 2012


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


More information about the openssh-unix-dev mailing list