This month's Index
Subject: Re: libssh2_userauth_publickey functionning
Re: libssh2_userauth_publickey functionning
From: Alexander Lamaison <swish_at_lammy.co.uk>
Date: Thu, 25 Oct 2012 12:55:23 +0100
On 23 October 2012 16:26, <scout_game_at_hushmail.me> wrote:
The easiest way to use public key authentication with libssh2 is to
> Normally libssh2_userauth_publickey_fromfile() requires both public and private keys to authenticate.
If you are using the OpenSSL crypto backend, you only need to provide
> This is usual but I haven't seen libssh2_userauth_publickey uses any private key but only a public key in its argument as unsigned char* variable. So should I setup my ssh to authenticate without providing a private key before using libssh2_userauth_publickey ?
I believe that libssh2_userauth_publickey expects you to sign the data
> maybe should I generate the pub/priv keys from the remote server and copy the public key to my local computer but I haven't tried that trick before so don't know if this is the solution or there is something else hidden.
How you distribute and install the public keys depends on your SSH
-- Swish - Easy SFTP for Windows Explorer (http://www.swish-sftp.org) _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-develReceived on 2012-10-25