chrooted ssh user and /dev/tty permission denied
ibrahim.harrani at gmail.com
Thu Jan 20 09:30:17 UTC 2011
I have a problem with making remote ssh connection in chroot env.
I configured chroot in sshd_config on FreeBSD 8.1 like following.
Match user myuser
and configured fstab like following.
devfs /opt/root/myuser/dev devfs rw 0 0
I copied all binaries and libs (such as ssh,ls,pwd,ftp,scp) also.
I can make ssh connection with this user to chroot enviorment successfully.
When I tried to make a ssh/scp/sftp connection to remote box in chroot. I got
"cannot open /dev/tty: permission denied" message.
The permission of /dev/tty is following on chroot's /dev directory
crw--w---- 1 root tty 0, 88 Jan 20 11:02 /dev/tty
I tired to change permission as root from out of the chroot by chmod,
the permission never change.
What should I do to make a remo ssh conn inside of the chroot env?
More information about the freebsd-questions