Bug 166715 - netdump propogate puts public key in authorized_keys2 file instead of authorized_keys (starting netdump requires password)
Summary: netdump propogate puts public key in authorized_keys2 file instead of authori...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: netdump
Version: 3.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Moyer
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-08-24 20:56 UTC by Jeff Morriss
Modified: 2007-11-30 22:07 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-04-26 18:58:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
my sshd_config (2.41 KB, text/plain)
2005-08-25 21:16 UTC, Jeff Morriss
no flags Details

Description Jeff Morriss 2005-08-24 20:56:56 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.3) Gecko/20040910

Description of problem:
In attempting to configure netdump, I noticed that (even after doing "service netdump propagate") when starting netdump, ssh asked for user netdump@netdumpserver's password.  While the system was booting this, of course, fails so the service fails to start.  :-(

After some research (more than I'd like to admit), I discovered that if I, on the netdump server, renamed "/var/crash/.ssh/authorized_keys2" to "/var/crash/.ssh/authorized_keys" then ssh would accept sessions based just on the public key.

My guess is that the "propagate" option needs to be updated to put the client's public key in "authorized_keys" instead of "authorized_keys2".

Version-Release number of selected component (if applicable):
netdump-0.7.7-2 and openssh-3.6.1p2-18

How reproducible:
Always

Steps to Reproduce:
1. configure netdump using the instructions on http://www.redhat.com/support/wpapers/redhat/netdump/index.html
2. note that when starting the client (service netdump start) it asks for user netdump's password again (first sign of trouble)
3. when booting note that netdump fails to start due to lack of password


Actual Results:  After a reboot, netdump didn't start because a password was required

Expected Results:  ssh should not have prompted for password, netdump should have started

Additional info:

Comment 1 Dave Anderson 2005-08-24 21:20:11 UTC

Jeff, can you explain this?



Comment 2 Dave Anderson 2005-08-24 21:26:24 UTC

Note that openssh-3.6.1p2-18 was the original RHEL3 version, although it's
been superceded in RHEL3-U2, U4, U4 and will be again in U6.  But since nobody
on the planet has ever reported this kind of problem, I don't have a clue...


Comment 3 Dave Anderson 2005-08-24 21:30:15 UTC
3.0E     openssh-3.6.1p2-18
3.0E-U2  openssh-3.6.1p2-33.30.1
3.0E-U4  openssh-3.6.1p2-33.30.3
3.0E-U5  openssh-3.6.1p2-33.30.4
3.0E-U6  openssh-3.6.1p2-33.30.6 (proposed)


Comment 4 Jeff Morriss 2005-08-25 12:45:50 UTC
So I guess you're thinking it's an openssh problem?

I upgraded to: openssh-3.6.1p2-33.30.4

and I still see the issue: authorized_keys2 is not taken into account, only
authorized_keys

Note that the ssh man page says nothing about authorized_keys2 (only
authorized_keys).

Comment 5 Jeff Moyer 2005-08-25 13:02:07 UTC
authorized_keys2 has been deprecated since the release of 3.0.  However, the
file should still be read by openssh.  If you could *downgrade* your openssh
package, and try with that, I'd appreciate it.

If that fixes the problem, we'll file a regression against openssh.  This is not
the sort of thing that should change in an update release.

Thanks for your patience on this.

Comment 7 Jeff Moyer 2005-08-25 13:12:39 UTC
Dave reminded me that the original report was against the 3.6.1p2-18.

Please, give us the version of openssh on the server side, as that is what
matters  in this case.

Comment 8 Jeff Morriss 2005-08-25 15:48:28 UTC
The 2 machines (client and server) always have the same version of everything on
them--they live their lives as a "mated pair."  (When I upgraded the openssh as
noted above, I did them both at the same time.)  Do you (still) want me to try
an older version (of openssh)?  If so, any particular one?

Comment 9 Jeff Moyer 2005-08-25 15:54:22 UTC
No need to downgrade.  I'll note that we've never heard of this problem before,
so I'm inclined to believe it is specific to your environment.

Do you do any special sshd configuration on your server?  Could you attach your
server's /etc/ssh/sshd_config file, please?  Also attach the client's
/etc/ssh/ssh_config file.

Thanks.

Comment 10 Jeff Morriss 2005-08-25 21:16:33 UTC
Created attachment 118124 [details]
my sshd_config

Hmm, this file appears to be a mess.  I didn't change it but maybe it was
modified before I got there.  (I'm not sure how to get a binary RPM for AS3 so
I don't know how to check what the file originally looked like.)

I note that it says:

AuthorizedKeysFile .ssh/authorized_keys

but if I comment that out I still get the same behavior.

Predictably, if I change it to "authorized_keys2" then it'll use that file but
not "authorized_keys".	(But that doesn't seem right since, well, that file's
not even documented.)

Comment 11 Jeff Morriss 2005-09-07 15:59:37 UTC
BTW, how do I change the state of this bug out of NEEDINFO?  It looks like that
happened automatically before but I don't actually have the option.

Comment 12 Jeff Morriss 2005-09-07 16:20:17 UTC
(Ah, okay then.  Don't know what I did...)

Comment 13 Jeff Moyer 2006-04-17 19:05:49 UTC
Simply comment the AuthorizedKeysFile line out.  If you set it explicitly, it
won't look for authorized_keys2.

This should resolve the problem, as I was able to reproduce the problem in a
test environment.  Please update the bug when you have test results.

Thanks!

Comment 14 Jeff Morriss 2006-04-24 08:17:26 UTC
Well, I have a system with:

openssh-server-3.6.1p2-33.30.6

and the AuthorizedKeysFile line is commented out and both files (authorized_keys
and authorized_keys2) are read.  I see (based on my older comments) that
previously this didn't work so maybe the .6 update fixed it?  Or maybe I forgot
to restart sshd when I tried that before...  Ergh, hope not.

Anyway, if sshd_config defaults to having that line commented out, I'm okay with
closing the bug.  (Though since the "authorized_keys2" file is deprecated,
shouldn't netdump use the non-deprecated file?)

Comment 15 Jeff Moyer 2006-04-26 18:58:03 UTC
I just checked the package, and it does have the AuthorizedKeysFile line
commented out by default.  Moving forward, netdump is being phased out in favor
of kdump.  As such, it isn't high priority to change the behaviour at this time.


Note You need to log in before you can comment on or make changes to this bug.