Subject: Re: SSH & SFTP: Passphrase Problem

Re: SSH & SFTP: Passphrase Problem

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 9 Jul 2010 20:31:48 +0200 (CEST)

On Fri, 9 Jul 2010, Paul Romero wrote:

> The general problem is that if my private key is encrypted--with a
> passphrase, I can't complete authentication with the SSH server using
> libssh. The situation is similar to the normal Linux scenario where ssh-add
> is used to automatically supply the passphrase for non-interactive
> applications.
>
> Some details are as follows: I am using the libcurl curl_easy_set_opt()
> routine with CURLOPT_KEYPASSWD to pass the passphrase with no special
> syntax. I receive error code 67 and the diagnostic: "SSH public key
> authentication failed: Unable to initialize private key from file"
>
> Do you have any insight about this problem ?

As this is the libssh2 group and mailing list, can you please provide a
libssh2-using code/example that repeats the problem without using libcurl?

Perhaps you can build one based on one of the many examples we provide in the
tarball.

-- 
  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-07-09