Subject: Using libssh2_userauth_publickey_fromfile() when I don't have a public key

Using libssh2_userauth_publickey_fromfile() when I don't have a public key

From: Thilee <numerounoalpha_at_yahoo.com>
Date: Thu, 4 Nov 2010 16:39:06 -0700 (PDT)

One doesn't really need to use a public key for auth, right?
In my case, I have only the private key, which technically is sufficient to authenticate me (ssh -i pvtkeyfile ruser_at_rhost works). However, when I use this library call I don't have a public-key file to supply it with. Giving NULL for pubkeyfile fails with -16 (LIBSSH2_ERROR_FILE).

libssh2_userauth_publickey_fromfile_ex(session, username, pubkeyfile,
                                       pvtkeyfile, passphrase)

Any help?

Thanks!

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