From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NHNSa-0008AQ-34 for garchives@archives.gentoo.org; Sun, 06 Dec 2009 20:12:00 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2348BE072D; Sun, 6 Dec 2009 20:11:43 +0000 (UTC) Received: from mail.muc.de (colin.muc.de [193.149.48.1]) by pigeon.gentoo.org (Postfix) with ESMTP id A332EE0824 for ; Sun, 6 Dec 2009 20:11:42 +0000 (UTC) Received: (qmail 89985 invoked by uid 3782); 6 Dec 2009 20:11:41 -0000 Received: from acm.muc.de (pD9E5395F.dip.t-dialin.net [217.229.57.95]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Sun, 06 Dec 2009 21:11:40 +0100 Received: (qmail 7346 invoked by uid 1000); 6 Dec 2009 20:17:12 -0000 Date: Sun, 6 Dec 2009 20:17:12 +0000 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Problems setting up sshd on an installation kernel Message-ID: <20091206201712.GB2599@muc.de> References: <20091206144836.GA2599@muc.de> <4B1BE2D4.3090001@f_philipp.fastmail.net> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B1BE2D4.3090001@f_philipp.fastmail.net> User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Archives-Salt: 3f224a58-daf9-41ee-945e-fab7d6f5f4a4 X-Archives-Hash: a4b999ebd04c76539f34c336bb6eff8b Hi, Florian, On Sun, Dec 06, 2009 at 05:59:00PM +0100, Florian Philipp wrote: > Alan Mackenzie schrieb: > > I'm trying to get sshd working on an embryonic Gentoo installation on > > my laptop. The reason is that I want to ssh from my nice comfy > > desktop system into this laptop to do the rest of the installation > > stuff. > > The installation kernel with which I'm having problems is: > > Linux livecd 2.6.30-gentoo-r8 #1 SMP Tue Nov 3 11:40:51 UTC 2009. > > Having started sshd on my laptop, when I do > > ssh -lroot 192.168.2.101 > > from my desktop, I get prompted for my ssh key's pass phrase, which I > > enter. Thereafter, nothing happens, and it continues to happen for a > > long, long time. > [...] > > Clearly openpty (a C function) is failing to find some file. Don't > > you just love error messages like "No such file or directory" which > > forget to identify the filename? I'm guessing that the file it can't > > find is the device file for the new pty. > > Is there anything I can do to get sshd working from this kernel (and if > > so, what?), or is there something fundamentally wrong with the kernel > > configuration? > Where did you start sshd, in the chrooted environment or on the live cd > itself? In the chrooted environment. When I start it directly in the live cd session, it seems to work just fine. When it works (from live cd), it creates a device file /dev/pts/0 in (presumably) the installation ram disk. When it doesn't work (from chrooted environment) it fails to create /dev/pts/0, even though /dev/pts exists inside the chrooted root filesystem. -- Alan Mackenzie (Nuremberg, Germany).