Subject: Re: Key-based authentication with libssh2_userauth_publickey_fromfile()

Re: Key-based authentication with libssh2_userauth_publickey_fromfile()

From: Ted Lemon <mellon_at_fugue.com>
Date: Fri, 10 Sep 2010 12:09:41 -0400

On Sep 10, 2010, at 7:19 AM, Paresh Thakor wrote:
> Anyone does know how can i pass file path for public/private keys into
> libssh2_userauth_publickey_fromfile()
> in iPhone SDK.?

      rc = libssh2_userauth_publickey_fromfile(session,
                                               "foo", [pubkey UTF8String],
                                               [privkey UTF8String], "");

pubkey and privkey are NSString objects containing filename paths.

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