Can you suggest me on iPhone device, where my public and private keys will be? 
How can i send passphrase?


On Jul 24, 2010, at 4:42 PM, Paresh Thakor wrote:

> 
> On Jul 24, 2010, at 12:43 PM, Ted Lemon wrote:
> 
>> On Jul 24, 2010, at 3:07 AM, Paresh Thakor wrote:
>>> So, i need to implement private key in my application. So, is this possible 
>>> with libssh2? This is critical.
>> 
>> Yes.   Instead of using libssh2_userauth_password(), use 
>> libssh2_userauth_publickey_fromfile():
>> 
>>     rc = libssh2_userauth_publickey_fromfile(session,
>>                                             "username", [pubkey UTF8String],
>>                                             [privkey UTF8String], "");
>> 
>> The pubkey and privkey variables in the example are NSStrings containing the 
>> path to the file.   There's also an API for doing it from memory, but I 
>> haven't tried that.
> 
> I'm just wondering that, private key will be on server which is the machine 
> which runs virtual terminal. So, the computer to which i need remote access 
> will be having private key. Public key will be on my iPhone device from which 
> i need to set remote access. What will be passphrase? do i need to specify 
> it? And how libssh2 will access public and private keys from filename or path 
> only? Are they both will be on server, i.e. the machine on which i need to 
> setup remote access?
> 
> I need to implement functionality that when user inputs no password and 
> specified the private key file, ssh must authenticate the user without 
> password.
> 
> Please suggest something. I think i'm getting confused between public/private 
> keys and how to set up remote connection between two devices with keypair.
> 
> Regards,
> Paresh Thakor.
> 
>> 
>> _______________________________________________
>> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
> 
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Reply via email to