Subject: Re: EPIPE causes 'Authentication by public key failed' for examples with keyfile authentication at OpenSSH server

Re: EPIPE causes 'Authentication by public key failed' for examples with keyfile authentication at OpenSSH server

From: Nick Rudnick <nick.rudnick_at_googlemail.com>
Date: Wed, 25 Apr 2012 01:05:49 +0200

:-) Thanks, TJ, this seems to be the case...

Here's the next:

[libssh2] 0.414362 Userauth: Loading private key file: /home/i/.ssh/id_rsa
[libssh2] 0.414594 Failure Event: -16 - Unable to initialize private key
from file
[libssh2] 0.414606 Failure Event: -19 - Callback returned error
Authentication by public key failed!

Any idea about the meaning of "Unable to initialize private key from file"?

Thanks a lot, Nick

2012/4/25 TJ Saunders <tj_at_castaglia.org>

>
> > "Failure Event: -16 - Unable to open public key file"...??
>
> > Here my access rights:
> > drwx------ 2 i i 4096 2012-04-23 10:52 .
> > drwxr-xr-x 58 i i 4096 2012-04-24 23:06 ..
> > -rw------- 1 i i 388 2012-04-22 21:07 authorized_keys
> > -rw------- 1 i i 1766 2012-03-23 14:55 id_rsa
> > -rw------- 1 i i 381 2012-03-23 14:55 id_rsa.pub
> > -rw------- 1 i i 727 2012-03-23 17:10 keygen.log
> > -rw------- 1 i i 1328 2012-04-23 10:52 known_hosts
>
> > [libssh2] 0.404525 Userauth: Loading public key file: ~/.ssh/id_rsa.pub
>
> The libssh2 library does not automatically resolve the tilde (~)
> character, as I recall. You might try configuring in the full path to
> that id_rsa.pub file.
>
> Cheers,
> TJ
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Words are also actions, and actions are a kind of words.
>
> -Ralph Waldo Emerson
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2012-04-25