From dm@home.dinoex.sub.org  Tue Aug 15 14:24:50 2000
Return-Path: <dm@home.dinoex.sub.org>
Received: from net2.dinoex.sub.org (net2.dinoex.de [212.184.201.182])
	by hub.freebsd.org (Postfix) with ESMTP id A262837BECC
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 15 Aug 2000 14:24:42 -0700 (PDT)
	(envelope-from dm@home.dinoex.sub.org)
Received: from home.dinoex.sub.org (home.dinoex.de [212.184.201.180])
	by net2.dinoex.sub.org (8.11.0/8.11.0) with ESMTP id e7FLMt525618
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 15 Aug 2000 23:22:55 +0200 (CEST)
	(envelope-from dm@home.dinoex.sub.org)
Received: (from dm@localhost)
	by home.dinoex.sub.org (8.11.0/8.10.1) id e7FLNrq00870; Tue, 15 Aug 2000 23:23:53 +0200 (CEST)
	(envelope-from dm)
Message-Id: <200008152123.e7FLNrq00870@home.dinoex.sub.org>
Date: Tue, 15 Aug 2000 23:23:53 +0200 (CEST)
From: dirk.meyer@dinoex.sub.org
Sender: dm@home.dinoex.sub.org
Reply-To: dirk.meyer@dinoex.sub.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: sshd can't allocate pty
X-Send-Pr-Version: 3.2

>Number:         20625
>Category:       bin
>Synopsis:       sshd can't allocate pty
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kris
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 15 14:30:01 PDT 2000
>Closed-Date:    Wed Aug 16 01:26:25 PDT 2000
>Last-Modified:  Wed Aug 16 01:27:00 PDT 2000
>Originator:     Dirk Meyer
>Release:        FreeBSD 4.1-STABLE i386
>Organization:
privat
>Environment:

	FreeBSD 3.4-STABLE i386
	FreeBSD 4.0-STABLE i386
	FreeBSD 4.1-STABLE i386

>Description:

	If number of used ptys < 16 all is okay.
	If number of used ptys > 17 sshd can't allocate ptys
	xterm (X-Free86-3.3.6) still can ...
	files in /dev/ seems to exist and working.

server:
 sshd[488]: error: openpty: No such file or directory
 sshd[488]: error: Failed to allocate pty.
 sshd[538]: error: openpty: No such file or directory
 sshd[538]: error: Failed to allocate pty.

client:
 Warning: Remote host failed or refused to allocate a pseudo tty.
 Warning: no access to tty (Bad file descriptor).
 Warning: Remote host failed or refused to allocate a pseudo tty.
 Warning: no access to tty (Bad file descriptor).

>How-To-Repeat:

	open more than 16 xterms,
	then try to login via ssh.

>Fix:
	
	none ...


>Release-Note:
>Audit-Trail:

From: Paul Saab <paul@mu.org>
To: dirk.meyer@dinoex.sub.org
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/20625: sshd can't allocate pty
Date: Tue, 15 Aug 2000 14:41:28 -0700

 cd /dev
 sh MAKEDEV pty1 pty2
 
 paul
 
 dirk.meyer@dinoex.sub.org (dirk.meyer@dinoex.sub.org) wrote:
 > 
 > >Number:         20625
 > >Category:       bin
 > >Synopsis:       sshd can't allocate pty
 > >Confidential:   no
 > >Severity:       non-critical
 > >Priority:       medium
 > >Responsible:    freebsd-bugs
 > >State:          open
 > >Quarter:        
 > >Keywords:       
 > >Date-Required:
 > >Class:          sw-bug
 > >Submitter-Id:   current-users
 > >Arrival-Date:   Tue Aug 15 14:30:01 PDT 2000
 > >Closed-Date:
 > >Last-Modified:
 > >Originator:     Dirk Meyer
 > >Release:        FreeBSD 4.1-STABLE i386
 > >Organization:
 > privat
 > >Environment:
 > 
 > 	FreeBSD 3.4-STABLE i386
 > 	FreeBSD 4.0-STABLE i386
 > 	FreeBSD 4.1-STABLE i386
 > 
 > >Description:
 > 
 > 	If number of used ptys < 16 all is okay.
 > 	If number of used ptys > 17 sshd can't allocate ptys
 > 	xterm (X-Free86-3.3.6) still can ...
 > 	files in /dev/ seems to exist and working.
 > 
 > server:
 >  sshd[488]: error: openpty: No such file or directory
 >  sshd[488]: error: Failed to allocate pty.
 >  sshd[538]: error: openpty: No such file or directory
 >  sshd[538]: error: Failed to allocate pty.
 > 
 > client:
 >  Warning: Remote host failed or refused to allocate a pseudo tty.
 >  Warning: no access to tty (Bad file descriptor).
 >  Warning: Remote host failed or refused to allocate a pseudo tty.
 >  Warning: no access to tty (Bad file descriptor).
 > 
 > >How-To-Repeat:
 > 
 > 	open more than 16 xterms,
 > 	then try to login via ssh.
 > 
 > >Fix:
 > 	
 > 	none ...
 > 
 > 
 > >Release-Note:
 > >Audit-Trail:
 > >Unformatted:
 > 
 > 
 > To Unsubscribe: send mail to majordomo@FreeBSD.org
 > with "unsubscribe freebsd-bugs" in the body of the message
 
 -- 
 Paul Saab
 Technical Yahoo
 paul@mu.org - ps@yahoo-inc.com - ps@freebsd.org
 Do You .. uhh .. Yahoo!?
 

From: dirk.meyer@dinoex.sub.org (Dirk Meyer)
To: freebsd-gnats-submit@FreeBSD.org, paul@mu.org (Paul Saab)
Cc:  
Subject: Re: bin/20625: sshd can't allocate pty
Date: Wed, 16 Aug 2000 04:31:36 +0200

 Paul Saab wrote:,
 
 > cd /dev
 > sh MAKEDEV pty1 pty2
 
 the device files already exist,
 otherwise xterm cant use it either.
 
 crw-rw-rw-  1 root  wheel    6,   0 Aug 15 23:09 ptyp0
 [...]
 crw-rw-rw-  1 root  wheel    6,  31 Aug 15 09:15 ptypv
 [...]
 crw-rw-rw-  1 root  wheel    6,  64 Aug 15 19:02 ptyr0
 [...]
 crw-rw-rw-  1 root  wheel    6,  95 Jun 23 07:53 ptyrv
 [...]
 crw--w----  1 dm    tty      5,  31 Aug 15 23:09 ttypv
 [...]
 crw--w----  1 dm    tty      5,  64 Aug 15 23:09 ttyr0
 [...]
 crw-rw-rw-  1 root  wheel    5,  95 Jun 23 07:53 ttyrv
 
 > > 	If number of used ptys < 16 all is okay.
 > > 	If number of used ptys > 17 sshd can't allocate ptys
 > > 	xterm (X-Free86-3.3.6) still can ...
 > > 	files in /dev/ seems to exist and working.
 
 Gru Dirk
 
 - Dirk Meyer, Im Grund 4, 34317 Habichtswald, Tel 05606/6512 Q (voice)
 - Origin: DINOEX Habichtswald  -FRG-  [dirk.meyer@dinoex.sub.org]
 

From: dirk.meyer@dinoex.sub.org (Dirk Meyer)
To: freebsd-gnats-submit@FreeBSD.org, paul@mu.org
Cc:  
Subject: Re: bin/20625: sshd can't allocate pty
Date: Wed, 16 Aug 2000 08:27:57 +0200

 > > cd /dev
 > > sh MAKEDEV pty1 pty2
 > 
 > the device files already exist,
 > otherwise xterm cant use it either.
 > 
 > > > 	If number of used ptys < 16 all is okay.
 > > > 	If number of used ptys > 17 sshd can't allocate ptys
 > > > 	xterm (X-Free86-3.3.6) still can ...
 > > > 	files in /dev/ seems to exist and working.
 
 You could close the pr,
 as the problem is related to the MAKDEV indeed.
 The still working xterm was misleading me,
 as it connected to /dev/ttyr?.
 /dev/ttyq? was indeed missing, 
 despite I called MAKEDEV that way.
 openpty breaks by the fist missing file.
 
 kind regards Dirk
 
 - Dirk Meyer, Im Grund 4, 34317 Habichtswald, Germany
 
Responsible-Changed-From-To: freebsd-bugs->kris 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Wed Aug 16 00:48:30 PDT 2000 
Responsible-Changed-Why:  
Over to the maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20625 
State-Changed-From-To: open->closed 
State-Changed-By: sheldonh 
State-Changed-When: Wed Aug 16 01:26:25 PDT 2000 
State-Changed-Why:  
Closed on request. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20625 
>Unformatted:
