This is a discussion on minimal chroot and ssh within the comp.unix.bsd.openbsd.misc forums, part of the OpenBSD category; --> Hi, I am having some minor issues with setting up an chroot environment accessed via ssh. When a user ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, I am having some minor issues with setting up an chroot environment accessed via ssh. When a user logs in, the message "Warning: Remote host failed or refused to allocate a pseudo tty." appears. No prompt appears, but everything seems to work as normal, except that error messages look somewhat different, e.g. "sh: <stdin>[2]: sl: not found" when I issue a (non-existing) "sl" command. Also, when I use the less command, I get "WARNING: terminal is not fully functional" (which may or may not be related). I have tried creating a few (four to be exact) pty-s (ptyp0 - ptyp3) using mknod, but to no avail. I also tried creating a the stdin, stderr and stdout devices, as well as the random, arandom, prandom, srandom and urandom devices, but none of these proved to solve the problem. It is currently in testing fase, so no more than one user is logged on at the time, but when it is deployed it will support multiple users (no more than 6 at a time, though). I have checked the source and turned on debugging, and as it turns out "openpty" is the one that's failing, so what I really want to know is from which pool openpty retrieves its pseudo tty's. Thanks a lot! -- Martijn http://www.sereneconcepts.nl |