Unix Technical Forum

minimal chroot and ssh

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > comp.unix.bsd.openbsd.misc

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-16-2008, 06:30 AM
Martijn
 
Posts: n/a
Default minimal chroot and ssh

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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:33 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com