Subject: bin/11269: Ssh rejects valid identity files.
To: None <gnats-bugs@gnats.netbsd.org>
From: Kimmo Suominen <kim@tac.nyc.ny.us>
List: netbsd-bugs
Date: 10/19/2000 12:29:16
>Number:         11269
>Category:       bin
>Synopsis:       Ssh rejects valid identity files.
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 19 12:29:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Kimmo Suominen
>Release:        1.5H from 2000-10-12
>Organization:
>Environment:
System: NetBSD nix.suominen.org 1.5H NetBSD 1.5H (GW-GENERIC) #2: Thu Oct 19 00:05:29 EDT 2000	kim@nix.suominen.org:/net/dit/src-3/NetBSD/cvsroot/src/sys/arch/i386/compile/GW-GENERIC i386
>Description:
Ssh rejects valid identity files.

    nix:~> ssh nix
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    Bad ownership or mode(0644) for '/u/kim/.ssh/identity'.
    It is recommended that your private key files are NOT accessible by others.
    Enter passphrase for RSA key 'kim@hrothgar.gw.com':
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    Bad ownership or mode(0644) for '/u/kim/.ssh/identity'.
    It is recommended that your private key files are NOT accessible by others.
    Bad passphrase.

It always tells me "bad passphrase" even though I type in the correct one.

The file mode is irrelevant.  At the very least I should be able to make
this work again with a configuration option.  The current behaviour is
unacceptable.
>How-To-Repeat:
Try to use an identity file with mode 0xyy where y!=0.
>Fix:
Remove the offending check from the code.
>Release-Note:
>Audit-Trail:
>Unformatted: