Displaying 20 results from an estimated 24 matches for "pem_read_privatekey".
2006 Nov 18
1
PEM_read_PrivateKey failed issue
...ello,
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* )...
2005 Jul 01
1
auto login failure: PEM_read_PrivateKey
Hey All,
Can anyone tell me what the following message implies? What does
PEM_read_PrivateKey do and why would it fail?
This is the result of trying to setup ssh for autologin. Though I
follow the man page, it doesn't work.
debug1: PEM_read_PrivateKey failed
Thanks,
Bill Rees
More Debug Output
==========
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_A...
2001 Sep 27
4
ssh2 key passphrase problems in 2.9.9 on Linux
I've just compiled and installed openssh-2.9.9p2 (compiled against
openssl-0.9.6b using gcc-3.0.0) on a Slackware 7-based Linux machine
(kernel 2.4.6ac2). The previously installed version was 2.9p2, compiled
against openssl-0.9.6a, also with gcc-3.0.0, but with a different build of
gcc-3.0.0.
Everything seems to work fine except for one problem: passphrase matching
for ssh2 keys
2005 Mar 29
0
Loading keys in SSH2
...hd.c file and I am interested about how
the SSH2 protocol loads the host keys. Below I drew a rough call graph
as [fileName]functionName
[sshd.c]main()
|
\/
[authfile.c]key_load_private()
|
\/
[authfile.c]key_load_private_pem()
|
\/
[in openssl library]PEM_read_PrivateKey()
I am a bit confused about the call to the function PEM_read_PrivateKey()
Below is the call to PEM_read_PrivateKey() on line 463 of authfile.c
=========================================================
pk = PEM_read_PrivateKey(fp, NULL, NULL, (char *)passphrase);
==================================...
2001 May 04
1
ssh_exchange_identification
...bug1: ssh_connect: getuid 0 geteuid 0 anon 1
debug1: Connecting to localhost [127.0.0.1] port 22.
debug1: temporarily_use_uid: 0/0 (e=0)
debug1: restore_uid
debug1: temporarily_use_uid: 0/0 (e=0)
debug1: restore_uid
debug1: Connection established.
debug1: read PEM private key done: type DSA
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
debug1: identity file /root/.ssh/identity type 0
debug1: identity file /root/.ssh/id_rsa type 1
debug1: identity file /root/.ssh/id_dsa type 2
ssh_exchange_identification: Connection closed by remote host
debug1: Calling cleanup 0x1727c...
2007 Jan 23
3
Move servers public/private keys to a new host
...ost to a
Linux host (this weekend) and I just realized the hostkey is going to
change.
I tried copying the old host's pub/priv keys to the new host, but when I
start sshd on the new host (using -ddd) I get:
debug3: Not a RSA1 key file /usr/local/etc/ssh/old_ssh_host_rsa_key
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Could not load host key: /usr/local/etc/ssh/old_ssh_host_rsa_key
The biggest problem is with all our Windows users. Since they only use
SSH (really plink) for CVS access, the CVS command fails if plink detects
the hostkey ha...
2005 Oct 15
1
help with openssh
...ssh_host_dsa_key
and then I ran
root at 00_00_09_PECA_NP1:/usr/bin# sshd -d -d -d -d -d -d -d -d -d
debug3: RNG is ready, skipping seeding
debug2: read_server_config: filename /etc/ssh/sshd_config
debug1: sshd version OpenSSH_3.7.1p2
debug3: Not a RSA1 key file /etc/ssh/ssh_host_rsa_key.
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Could not load host key: /etc/ssh/ssh_host_rsa_key
debug3: Not a RSA1 key file /etc/ssh/ssh_host_dsa_key.
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Could not load host key: /etc/ssh/ssh_h...
2010 Apr 02
2
AuthorizedKeysFile with default value prevents Public/Private key authentication
...MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/swinchen/.ssh/id_rsa
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key '/home/swinchen/.ssh/id_rsa':
debug1: read PEM private key done: type RSA
debug1: Authentications that can continue: publickey
debug1: Trying private key: /home/swinchen/.ssh/id_dsa
debug1: No more authe...
2012 Nov 01
2
sftp authentication failure only as cronjob
...d
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering public key: /home/lars/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
debug1: No more authentication methods to try.
Permission denied (publickey,password).
Couldn't read packet: Connection reset by peer
Again the script runs fine from the crontab on the fedora 13 machine but
fails on the centos 6.3...
2011 Nov 03
1
Help with CA Certificates for user authentication?
...ntil (on the client):
debug1: ssh_rsa_verify: signature correct
debug2: input_userauth_pk_ok: fp c9:42:44:91:48:04:45:b2:ee:93:12:3f:e5:89:13:ab
debug3: sign_and_send_pubkey: RSA-CERT c9:42:44:91:48:04:45:b2:ee:93:12:3f:e5:89:13:ab
debug1: read PEM private key begin
debug1: key_parse_private_pem: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key '/home/test/.ssh/id_rsa':
...and, correspondingly on the server:
debug1: KEX done
debug1: userauth-request for user test service ssh-connection method none
debug1: attempt 0 failures 0
debug1: userauth...
2004 Jun 30
10
[Bug 887] Problem connecting OpenSSH Client to a F-Secure SSH Server
...: debug1: send SSH2_MSG_SERVICE_REQUEST
32459: debug1: service_accept: ssh-userauth
32459: debug1: got SSH2_MSG_SERVICE_ACCEPT
32459: debug1: authentications that can continue: publickey
32459: debug1: next auth method to try is publickey
32459: debug1: try privkey: /root/.ssh/id_dsa
32459: debug1: PEM_read_PrivateKey failed
32459: debug1: read PEM private key done: type <unknown>
32459: debug1: no more auth methods to try
32459: Permission denied (publickey).
32459: debug1: Calling cleanup 0x8068090(0x0)
32458: Couldn't read packet: Connection reset by peer
==========================================...
2016 May 19
0
google cloud compute with PEM file
...ailure. Minor code may provide more
> information
> Credentials cache file '/tmp/krb5cc_501' not found
>
> debug1: Next authentication method: publickey
> debug1: Offering public key: /home/test1/my-key.txt
> debug1: Server accepts key: pkalg ssh-rsa blen 277
> debug1: PEM_read_PrivateKey failed
> debug1: read PEM private key done: type <unknown>
> Enter passphrase for key '/home/test1/my-key.txt':
> debug1: No more authentication methods to try.
> Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
> [test1 at pgpool1 ~]$
>
>
>
If SELi...
2001 Feb 21
0
Private key files closed twice --
...ition only.
-- Paul Townsend (aab at purdue.edu)
=-=-=-=-=-=
--- authfile.c.orig Thu Feb 8 21:11:24 2001
+++ authfile.c Tue Feb 20 19:27:20 2001
@@ -446,6 +446,7 @@
fp = fdopen(fd, "r");
if (fp == NULL) {
error("fdopen failed");
+ close(fd);
return 0;
}
pk = PEM_read_PrivateKey(fp, NULL, NULL, (char *)passphrase);
@@ -536,10 +537,11 @@
case KEY_RSA:
case KEY_UNSPEC:
ret = load_private_key_ssh2(fd, passphrase, key, comment_return);
+ break;
default:
+ close(fd);
break;
}
- close(fd);
return ret;
}
2016 May 17
0
google cloud compute with PEM file
...mation
debug1: Unspecified GSS failure. Minor code may provide more information
Credentials cache file '/tmp/krb5cc_501' not found
debug1: Next authentication method: publickey
debug1: Offering public key: /home/test1/my-key.txt
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key '/home/test1/my-key.txt':
debug1: No more authentication methods to try.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
[test1 at pgpool1 ~]$
2001 Jan 27
4
load host key error:
I get error:
%SSHD-3-ERROR: Could not load host key: /tmp/ssh_host_dsa_key: Bad file
descriptor
Jan 26 23:58:52: %SSHD-6-INFO: Disabling protocol version 2. Could not
load host key
Everything looks okay, the file exists, (it was generated using command:
ssh-keygen -d -f ssh_host_dsa_key -N '')
I also do 'ls' and find the file exists with permissions:
-rw------- 1 root group
2016 May 17
3
google cloud compute with PEM file
On Tue, 17 May 2016 13:59:18 -0600
Dustin Kempter wrote:
> Is there something I missed?
ssh -v serveryouwanttoconnectto
That will tell you what the problem is.
If you don't understand the output, post it here.
--
MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com
2002 Jan 31
7
x509 for hostkeys.
...authfile.c
===================================================================
RCS file: /home/markus/cvs/ssh/authfile.c,v
retrieving revision 1.45
diff -u -r1.45 authfile.c
--- authfile.c 29 Dec 2001 21:56:01 -0000 1.45
+++ authfile.c 31 Jan 2002 10:50:53 -0000
@@ -460,6 +460,24 @@
error("PEM_read_PrivateKey: mismatch or "
"unknown EVP_PKEY save_type %d", pk->save_type);
}
+ if (prv != NULL) {
+ /* try to get a certificate if we have the private key */
+ prv->x509 = PEM_read_X509(fp, NULL, NULL, (char *)passphrase);
+ if (prv->x509 != NULL) {
+ debug("PEM_read...
2008 Sep 19
2
[Bug 1526] New: SSH key prompt if public key missing and pubkey auth fails
...ply
debug1: Authentications that can continue: publickey,password
debug1: Offering public key: /Users/nicholas/.ssh/id_rsa
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: /Users/nicholas/.ssh/id_dsa
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
[dialog appears here]
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
2011 Feb 24
6
[Bug 1869] New: ssh-add can no longer read from FIFOs as of 5.7p1
...AssignedTo: unassigned-bugs at mindrot.org
ReportedBy: dkg at fifthhorseman.net
Created attachment 2001
--> https://bugzilla.mindrot.org/attachment.cgi?id=2001
allow ssh-add to read from FIFOs
It looks like ssh-add can no longer read from FIFOs as of 5.7p1 (since
the switch from PEM_read_PrivateKey() to PEM_read_bio_PrivateKey(), and
reading the file into an ssh buffer directly).
Being able to read from a FIFO is nice for tools that don't want to put
keys directly on the filesystem. In fact, we were relying on that
behavior for the monkeysphere, and it's currently breaking because o...
2004 Dec 22
0
scp problem
...external-keyx,gssapi,publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: .ssh/id_rsa2Firewall
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key '.ssh/id_rsa2Firewall':
debug1: read PEM private key done: type RSA
debug3: sign_and_send_pubkey
debug2: we sent a publickey packet, wait for reply
debug1: Authentication succeeded (publickey).
debug1: f...