mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Rob Landley <landley@trommello.org>
To: Sean Neakums <sneakums@zork.net>, linux-kernel@vger.kernel.org
Subject: Re: ssh won't work from initial ram disk in 2.4.18
Date: Thu, 28 Mar 2002 09:00:50 -0500	[thread overview]
Message-ID: <20020328141543.AD0274FF@merlin.webofficenow.com> (raw)
In-Reply-To: <20020328124257.99FD54FF@merlin.webofficenow.com> <6uadssbzh4.fsf@zork.zork.net>

On Thursday 28 March 2002 08:20 am, Sean Neakums wrote:
> commence  Rob Landley quotation:
> > If this is an ssh problem I'll be happy to go bug those guys, but
> > why would it be different from initrd than from an actual mounted
> > partition?  (Permissions are the same, I checked.)
>
> Have you tried running ssh with the -v switch?  That will dump a bunch
> of debug info that's often very helpful with investigating problems
> such as these.

Yup.  I broke out the ssh source code to see what the messages meant, too.  
(It's a linux from scratch system.  Comes in handy at times like these. :)

Cutting and pasting from this test case is a bit problematic, but the most 
interesting message was the one where it was complaining I hadn't entered the 
passphrase for the public key.  (The key doesn't HAVE a passphrase.  Yes I 
compared the id_dsa files, authorized_keys, etc.)  This is probably a red 
herring though, since the non-passphrase version (ssh 10.0.0.1 as root) has a 
similar behavior of complaining I hadn't entered a password it had never 
prompted me for.  It seems to get an immediate eof (or some other kind of 
error) on input whenever it wants a password.

Again, the exact same code and data files work after initrd exits.

It MIGHT have something to do with the fact that ptys don't seem to be 
initialized before initrd exits.  ssh gets a little strange when there are no 
ptys.  (When I mount /dev/pts, it's empty.  However, the success case of 
booting the same code from /dev/hda1doesn't even need /dev/pts mounted to 
work, so...?)

I can probably cut this test case down to fit on a bootable floppy given 
about eight hours of sleep.  :)

Rob

  reply	other threads:[~2002-03-28 14:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-28 12:28 Rob Landley
2002-03-28 13:20 ` Sean Neakums
2002-03-28 14:00   ` Rob Landley [this message]
2002-03-28 14:28 ` Kurt Garloff

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=20020328141543.AD0274FF@merlin.webofficenow.com \
    --to=landley@trommello.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sneakums@zork.net \
    /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

all inboxes | Powered by JetHome®