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 1NIOKp-0003Tz-QX for garchives@archives.gentoo.org; Wed, 09 Dec 2009 15:20:12 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F3B1CE0671; Wed, 9 Dec 2009 15:18:42 +0000 (UTC) Received: from mail.muc.de (colin.muc.de [193.149.48.1]) by pigeon.gentoo.org (Postfix) with ESMTP id 76F18E0671 for ; Wed, 9 Dec 2009 15:18:42 +0000 (UTC) Received: (qmail 89949 invoked by uid 3782); 9 Dec 2009 15:18:41 -0000 Received: from acm.muc.de (pD9E50034.dip.t-dialin.net [217.229.0.52]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Wed, 09 Dec 2009 16:18:39 +0100 Received: (qmail 8774 invoked by uid 1000); 9 Dec 2009 15:24:16 -0000 Date: Wed, 9 Dec 2009 15:24:16 +0000 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Problems setting up sshd on an installation kernel Message-ID: <20091209152416.GA8387@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: 78992d4d-bd27-49a5-bac7-f03ca2ed8993 X-Archives-Hash: 0489f38d728bbbff823bf20a75bc9c58 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: > >> Hi, folks! > >> 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. As said, I fixed the problem by mounting /dev with --rbind. This misunderstanding cost me, perhaps, 10 hours of my time. I then reported my problem to the bug tracker, suggesting that the manual should be amended to say "--rbind" here. I really wish I hadn't bothered. My attempt to contribute was brusquely brushed aside by somebody who didn't even bother to thank me for my trouble (I always thank people reporting bugs to my project), said that he "couldn't reproduce [my] error", and asserted that sshd wasn't meant to work in the chrooted environment (why on Earth not?), implying it was my stupid fault for not following the manual rigidly and droidwise. To cap it all, he patronisingly referred me to the appropriate sections of the fine manual (that's after my having reported how I'd already fixed the problem for me). See https://bugs.gentoo.org/show_bug.cgi?id=3D296073 Seems to me, reporting problems to Gentoo is a waste of time, at least documentation problems. --=20 Alan Mackenzie (Nuremberg, Germany).