-bash-3.00# ls /dev/ptyp
ptyp0  ptyp6  ptypC  ptypI  ptypO  ptypU  ptypa  ptypg  ptypm  ptyps  ptypy
ptyp1  ptyp7  ptypD  ptypJ  ptypP  ptypV  ptypb  ptyph  ptypn  ptypt  ptypz
ptyp2  ptyp8  ptypE  ptypK  ptypQ  ptypW  ptypc  ptypi  ptypo  ptypu
ptyp3  ptyp9  ptypF  ptypL  ptypR  ptypX  ptypd  ptypj  ptypp  ptypv
ptyp4  ptypA  ptypG  ptypM  ptypS  ptypY  ptype  ptypk  ptypq  ptypw
ptyp5  ptypB  ptypH  ptypN  ptypT  ptypZ  ptypf  ptypl  ptypr  ptypx
-bash-3.00# ls /dev/pty* | wc -l
      62
-bash-3.00#

I dont understand anything :)

-bash-3.00# sysctl kern.tty.maxptys
kern.tty.maxptys=992
-bash-3.00#

If they're 992, how can they run out ?


> >
> > On 1/5/06, Kim Onnel < [EMAIL PROTECTED]> wrote:
> > >
> > > Hello,
> > > I have an OpenBSD 3.6 running as a jump-through host, people ssh in
> > > and
> > > telnet out
> > >
> > > users are systraced and they all use an expect script.
> > >
> > > I get this message when the users exceed the number of ptys (a-z.
> > > A-Z,0-9)
> > >
> > > The system has no more ptys.  Ask your system administrator to create
> > > more.
> > >
> > > and at my messages log:
> > >
> > >
> > > Jan  5 11:52:50 bastion2 sshd[5072]: error: openpty: No such file or
> > > directory
> > > Jan  5 11:52:50 bastion2 sshd[3002]: error: session_pty_req: session 0
> > > alloc
> > > failed
> > > Jan  5 11:52:53 bastion2 sshd[13660]: error: openpty: No such file or
> > > directory
> > > Jan  5 11:52:53 bastion2 sshd[11094]: error: session_pty_req: session
> > > 0
> > > alloc failed
> > > Jan  5 11:53:08 bastion2 sshd[30104]: error: openpty: No such file or
> > > directory
> > > Jan  5 11:53:08 bastion2 sshd[4272]: error: session_pty_req: session 0
> > > alloc
> > > failed
> > > Jan  5 11:53:11 bastion2 sshd[21718]: error: openpty: No such file or
> > > directory
> > > Jan  5 11:53:11 bastion2 sshd[16534]: error: session_pty_req: session
> > > 0
> > > alloc failed
> > > Jan  5 11:53:20 bastion2 sshd[8419]: error: openpty: No such file or
> > > directory
> > > Jan  5 11:53:20 bastion2 sshd[25920]: error: session_pty_req: session
> > > 0
> > > alloc failed
> > > Jan  5 11:53:21 bastion2 sshd[6613]: error: openpty: No such file or
> > > directory
> > > Jan  5 11:53:21 bastion2 sshd[26402]: error: session_pty_req: session
> > > 0
> > > alloc failed
> > >
> > >
> > > What can i do to increase ptys ?
> > >
> > > googling shows people getting the same messgae and expect/gcc being
> > > involved, or is it just a system message ?

Reply via email to