public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Problems setting up sshd on an installation kernel
Date: Wed, 9 Dec 2009 15:24:16 +0000	[thread overview]
Message-ID: <20091209152416.GA8387@muc.de> (raw)
In-Reply-To: <c30988c30912061056i5ae1c3cco179f47e50eb905a2@mail.gmail.com>

On Sun, Dec 06, 2009 at 01:56:06PM -0500, Joshua Murphy wrote:
> On Sun, Dec 6, 2009 at 11:59 AM, Florian Philipp
> <lists@f_philipp.fastmail.net> wrote:
> > Alan Mackenzie schrieb:
> >> Hi, folks!

> >> 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?

> 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=296073

Seems to me, reporting problems to Gentoo is a waste of time, at least
documentation problems.

-- 
Alan Mackenzie (Nuremberg, Germany).



  parent reply	other threads:[~2009-12-09 15:20 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-06 14:48 [gentoo-user] Problems setting up sshd on an installation kernel Alan Mackenzie
2009-12-06 16:28 ` Mick
2009-12-06 20:23   ` Alan Mackenzie
2009-12-06 22:22     ` Mick
2009-12-06 16:59 ` Florian Philipp
2009-12-06 18:56   ` Joshua Murphy
2009-12-06 20:45     ` Alan Mackenzie
2009-12-09 15:24     ` Alan Mackenzie [this message]
2009-12-09 15:43       ` Alan McKinnon
2009-12-09 16:46         ` Alan Mackenzie
2009-12-09 19:42           ` Alan McKinnon
2009-12-09 21:57             ` Stroller
2009-12-09 22:20               ` Alan McKinnon
2009-12-10 10:36               ` Alan Mackenzie
2009-12-10 14:23                 ` Neil Bothwick
2009-12-10 18:41                   ` William Hubbs
2009-12-10 20:42                   ` Mick
2009-12-10 15:27                 ` Willie Wong
2009-12-10 16:52                   ` Joshua Murphy
2009-12-09 22:35             ` Alan Mackenzie
2009-12-10  5:00               ` Stroller
2009-12-09 21:27           ` Stroller
2009-12-10  0:23             ` Dale
2009-12-06 20:17   ` Alan Mackenzie
2009-12-06 18:36 ` Walter Dnes
2009-12-06 21:31   ` Joshua Murphy
2009-12-06 21:49     ` Boy Hartsuiker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091209152416.GA8387@muc.de \
    --to=acm@muc.de \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox