OpenSSH
[Top] [All Lists]

PEM_read_PrivateKey failed issue

To: openssh-unix-dev@mindrot.org
Subject: PEM_read_PrivateKey failed issue
From: "Alain G. Fabry" <alainfabry@belgacom.net>
Date: Sat, 18 Nov 2006 18:04:14 +0100
Delivered-to: sp-com-lists@consult.net
Delivered-to: openssh-unix-dev-list1@securepoint.com
Delivered-to: openssh-unix-dev-tmda@mindrot.org
Delivered-to: openssh-unix-dev@mindrot.org
List-archive: <http://lists.mindrot.org/pipermail/openssh-unix-dev>
List-help: <mailto:openssh-unix-dev-request@mindrot.org?subject=help>
List-id: Development of portable OpenSSH <openssh-unix-dev.mindrot.org>
List-post: <mailto:openssh-unix-dev@mindrot.org>
List-subscribe: <http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev>, <mailto:openssh-unix-dev-request@mindrot.org?subject=subscribe>
List-unsubscribe: <http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev>, <mailto:openssh-unix-dev-request@mindrot.org?subject=unsubscribe>
Sender: openssh-unix-dev-bounces+openssh-unix-dev-list1=securepoint.com@mindrot.org
User-agent: Mutt/1.4.2.1i
Hello,

I'm having a problem with my ssh client, on FreeBSD 5.4 and 6.1 the same issue.

OpenSSH_3.8.1p1 FreeBSD-20040419, OpenSSL 0.9.7e 25 Oct 2004

but also same problem with OpenSSH_4.3

When I make a key, everything goes fine. When I try to change the password on 
the key
it give me the 'PEM_read_PrivateKey failed' problem, this also prevents me from 
connecting
to another host.

Below small debug of creation of keys + trying to change the password. I'm sure 
that I type
in the password correct, even though it indicates it is not !!

1. Creation of key (afterward I perform a - chmod 600 test* )

afabry@ducati-748 21:18 % ssh-keygen -t dsa -b 1024
Generating public/private dsa key pair.
Enter file in which to save the key (/home/afabry/.ssh/id_dsa): 
/home/afabry/.ssh/test
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/afabry/.ssh/test.
Your public key has been saved in /home/afabry/.ssh/test.pub.
The key fingerprint is:
1c:45:31:f9:f4:62:ad:d1:66:5d:9c:8a:4c:1b:48:d6 
afabry@ducati-748.3rdrock.kicks-ass.net

2. Changing the password

afabry@ducati-748 21:20 % ssh-keygen -v -p -f .ssh/test.pub
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter old passphrase:
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Bad passphrase.


I'm hoping you can help me with this problem. I've already googled like crazy 
but haven't
+found a
solution anywhere.

Many thanks in advance.

Alain

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

<Prev in Thread] Current Thread [Next in Thread>