Gentoo Archives: gentoo-user

From: Alan Mackenzie <acm@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Problems setting up sshd on an installation kernel
Date: Wed, 09 Dec 2009 15:20:12
Message-Id: 20091209152416.GA8387@muc.de
In Reply to: Re: [gentoo-user] Problems setting up sshd on an installation kernel by Joshua Murphy
1 On Sun, Dec 06, 2009 at 01:56:06PM -0500, Joshua Murphy wrote:
2 > On Sun, Dec 6, 2009 at 11:59 AM, Florian Philipp
3 > <lists@f_philipp.fastmail.net> wrote:
4 > > Alan Mackenzie schrieb:
5 > >> Hi, folks!
6
7 > >> I'm trying to get sshd working on an embryonic Gentoo installation on my
8 > >> laptop.  The reason is that I want to ssh from my nice comfy desktop
9 > >> system into this laptop to do the rest of the installation stuff.
10
11 > >> The installation kernel with which I'm having problems is:
12 > >> Linux livecd 2.6.30-gentoo-r8 #1 SMP Tue Nov 3 11:40:51 UTC 2009.
13
14 > >> Having started sshd on my laptop, when I do
15
16 > >>     ssh -lroot 192.168.2.101
17
18 > >> from my desktop, I get prompted for my ssh key's pass phrase, which I
19 > >> enter.  Thereafter, nothing happens, and it continues to happen for a
20 > >> long, long time.
21
22 > > [...]
23
24 > >> Clearly openpty (a C function) is failing to find some file.  Don't you
25 > >> just love error messages like "No such file or directory" which forget
26 > >> to identify the filename?  I'm guessing that the file it can't find is
27 > >> the device file for the new pty.
28
29 > >> Is there anything I can do to get sshd working from this kernel (and if
30 > >> so, what?), or is there something fundamentally wrong with the kernel
31 > >> configuration?
32
33
34 > > Where did you start sshd, in the chrooted environment or on the live cd
35 > > itself?
36
37 > My first thought as well... I'd guess, just at a glance, that sshd was
38 > started in the chroot, and that /mnt/gentoo/dev/ is bind mounted
39 > properly, but /mnt/gentoo/dev/pts/ isn't.
40
41 As said, I fixed the problem by mounting /dev with --rbind. This
42 misunderstanding cost me, perhaps, 10 hours of my time.
43
44 I then reported my problem to the bug tracker, suggesting that the manual
45 should be amended to say "--rbind" here.
46
47 I really wish I hadn't bothered. My attempt to contribute was brusquely
48 brushed aside by somebody who didn't even bother to thank me for my
49 trouble (I always thank people reporting bugs to my project), said that
50 he "couldn't reproduce [my] error", and asserted that sshd wasn't meant
51 to work in the chrooted environment (why on Earth not?), implying it was
52 my stupid fault for not following the manual rigidly and droidwise. To
53 cap it all, he patronisingly referred me to the appropriate sections of
54 the fine manual (that's after my having reported how I'd already fixed
55 the problem for me).
56
57 See https://bugs.gentoo.org/show_bug.cgi?id=296073
58
59 Seems to me, reporting problems to Gentoo is a waste of time, at least
60 documentation problems.
61
62 --
63 Alan Mackenzie (Nuremberg, Germany).

Replies

Subject Author
Re: [gentoo-user] Problems setting up sshd on an installation kernel Alan McKinnon <alan.mckinnon@×××××.com>