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 1NHNuX-0002Wj-CY for garchives@archives.gentoo.org; Sun, 06 Dec 2009 20:40:53 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 62AB6E06F4; Sun, 6 Dec 2009 20:40:05 +0000 (UTC) Received: from mail.muc.de (colin.muc.de [193.149.48.1]) by pigeon.gentoo.org (Postfix) with ESMTP id 85A61E06F4 for ; Sun, 6 Dec 2009 20:40:04 +0000 (UTC) Received: (qmail 95442 invoked by uid 3782); 6 Dec 2009 20:40:03 -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:40:03 +0100 Received: (qmail 7805 invoked by uid 1000); 6 Dec 2009 20:45:35 -0000 Date: Sun, 6 Dec 2009 20:45:35 +0000 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Problems setting up sshd on an installation kernel Message-ID: <20091206204535.GD2599@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=iso-8859-1 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) From: Alan Mackenzie X-Primary-Address: acm@muc.de Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 97f9b0dc-01f4-48fe-b8aa-42da722b8a07 X-Archives-Hash: a09526f0bebdc701ea30872e94921f3c Hi, Joshua, On Sun, Dec 06, 2009 at 01:56:06PM -0500, Joshua Murphy wrote: > On Sun, Dec 6, 2009 at 11:59 AM, Florian Philipp > wrote: > > Alan Mackenzie schrieb: > >> I'm trying to get sshd working on an embryonic Gentoo installation o= n my > >> laptop. =A0The reason is that I want to ssh from my nice comfy deskt= op > >> 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 > >> =A0 =A0 ssh -lroot 192.168.2.101 > >> from my desktop, I get prompted for my ssh key's pass phrase, which = I > >> enter. =A0Thereafter, nothing happens, and it continues to happen fo= r a > >> long, long time. > > [...] > >> Clearly openpty (a C function) is failing to find some file. =A0Don'= t you > >> just love error messages like "No such file or directory" which forg= et > >> to identify the filename? =A0I'm guessing that the file it can't fin= d 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 kerne= l > >> configuration? > > Where did you start sshd, in the chrooted environment or on the live = cd > > itself? > My first thought as well... I'd guess, just at a glance, that sshd was > started in the chroot, and that /mnt/gentoo/dev/ is bind mounted > properly, but /mnt/gentoo/dev/pts/ isn't. It was, and it is, but it isn't, just as you suggest. I've just read up on exactly what mount -o bind /dev /mnt/gentoo/dev means, and I can see I really want "-o rbind" (or --rbind) instead. Thanks! It'll surely work, now > Joshua M. Murphy --=20 Alan Mackenzie (Nuremberg, Germany).