[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: newbies question on pubkey authentication
[Thread Prev] | [Thread Next]
- Subject: Re: newbies question on pubkey authentication
- From: Andreas Schneider <asn@xxxxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Thu, 13 Oct 2011 12:53:25 +0200
- To: libssh@xxxxxxxxxx
On Thursday, October 13, 2011 09:35:12 you wrote: > Hi All, Hi, > > > as a newbie to ssh i try to write a client (on ms windows) with public key > authentication. > > The function ssh_userauth_offer_pubkey(..) returns SSH_AUTH_SUCCESS, fine. > > Now I understand I have to read the associated private key and then to use > the function > > ssh_userauth_pubkey(). > > My question: how to retrieve the private key? > > I cannot find the declaration of the function ssh_pki_import_privkey_file() > (mentioned in the docs). Instead I find You're probably looking at the wrong documentation. You should look at the docs off the stable version instead of the current development branch :) > int ssh_userauth_privatekey_file(ssh_session session, const char *username, > const char *filename, const char *passphrase), being declared in > libssh.h > > But no variable to hold the private key. > privatekey_from_file() ??? There is no need to hold it. -- andreas
AW: newbies question on pubkey authentication | "Florian, Heinz-Josef" <hj.florian@xxxxxxxxxxx> |
newbies question on pubkey authentication | "Florian, Heinz-Josef" <hj.florian@xxxxxxxxxxx> |