Hello - I need a little help here with OpenSSH.

When connect to sshd I see prompt for password and then, after entering
right password, session freezes. While running sshd in debug mode
following messages can be seen (same in syslog):

debug1: Allocating pty.
openpty: No such file or directory
session_pty_req: session 0 alloc failed

I compiled kernel with Unix98 PTY support, number of pty's 256 and Virtual
Terminal options on. I have files /dev/ptyp[0-5] made as char devices,
major 2, minor [0-5], appropriate permissions. I have /dev/pts/ directory
with appropriate permissions. All shared libraries and config files that
sshd needs are present (checked with strace).

Here is quote from `strace -ff` log file:

open("/dev/ptyp0", O_RDWR)         = 6      
ioctl(6, 0x402c7413, 0x7fffcf78)   = 0     
ioctl(6, 0x40045430, [2147473016]) = -1 EINVAL (Invalid argument)
fstat64(0x6, 0x7fffd0f8)           = 0
stat64(0x7fffd6d8, 0x7fffd0f8)     = -1 ENOENT (No such file or directory) 
close(6)                           = 0

Apparently it tries and can not create file in /dev/pts directory with
some ioctl...

Two questions:
1. What else should I do to enable support for PTYs  ?
2. How can I make sshd not to use PTYs ? While still working with
   password authentication ?

                        Thanks a lot.
                                Michael.

-- 

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to