From owner-freebsd-questions Sun Sep 10 13:45: 5 2000 Delivered-To: freebsd-questions@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id 4CF6937B422 for ; Sun, 10 Sep 2000 13:45:00 -0700 (PDT) Received: from strontium.scientia.demon.co.uk ([192.168.91.36] ident=root) by scientia.demon.co.uk with esmtp (Exim 3.16 #1) id 13YDOb-00004i-00; Sun, 10 Sep 2000 21:08:09 +0100 Received: (from ben@localhost) by strontium.scientia.demon.co.uk (8.9.3/8.9.3) id VAA43278; Sun, 10 Sep 2000 21:08:09 +0100 (BST) (envelope-from ben) Date: Sun, 10 Sep 2000 21:08:08 +0100 From: Ben Smithurst To: JEAH Communications Cc: questions@freebsd.org Subject: Re: Missing TTY? Message-ID: <20000910210808.L77593@strontium.scientia.demon.co.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG JEAH Communications wrote: > Sep 9 22:55:50 awww sshd[63168]: error: openpty: No such file or > directory > Sep 9 22:55:50 awww sshd[63168]: error: Failed to allocate pty. > > That appears when people try to connect via SSH every once in awhile. > > Any idea how to find out what's missing or setup wrong and how to fix > it? I would appreciate any help. This has been going on for awhile now. How many PTYs do you have configured into your kernel? Do the appropriate device nodes exist for all of those devices? (`ls /dev/[tp]ty*`) The problem might just be that too many people are logged in at any one time (or using PTYs for other things) so you can just add more to your kernel ('pseudo-device pty 256' or however many you want, IIRC) and make the devices. ('sh MAKEDEV pty0' makes 32, IIRC, 'sh MAKEDEV pty1' makes the next 32, and so on. I'm not 100% sure though so read the MAKEDEV script to check what it actually does.) -- Ben Smithurst / ben@FreeBSD.org / PGP: 0x99392F7D To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message