From: | Dave Page <dpage(at)pgadmin(dot)org> |
---|---|
To: | Magnus Hagander <magnus(at)hagander(dot)net> |
Cc: | Akshay Joshi <akshay(dot)joshi(at)enterprisedb(dot)com>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org> |
Subject: | Re: SSH Tunneling implementation |
Date: | 2012-07-09 09:48:31 |
Message-ID: | CA+OCxozqBn4UX5cPUm86spBCcHqeE51JUg9uoQ6K5cswQxuJbw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
On Mon, Jul 9, 2012 at 10:34 AM, Magnus Hagander <magnus(at)hagander(dot)net> wrote:
> On Mon, Jul 9, 2012 at 11:15 AM, Dave Page <dpage(at)pgadmin(dot)org> wrote:
>> On Mon, Jul 9, 2012 at 10:10 AM, Akshay Joshi
>> <akshay(dot)joshi(at)enterprisedb(dot)com> wrote:
>>>
>>> We are using following API for successful authentication using public key
>>>
>>> libssh2_userauth_publickey_fromfile(LIBSSH2_SESSION *session, const
>>> char *username, const char *publickey, const char *privatekey,
>>> const char *passphrase);
>>>
>>> So in this case we will require both public and private key. We can do
>>> one thing here is only get the private key from user and assume public key
>>> file (.pub) is at the same folder location. Thoughts? Comments?
>>
>> No, that won't work - it'll break as soon as I test it for example.
>>
>> You can just set that param to null. The man page says:
>>
>> publickey - Path name of the public key file. (e.g.
>> /etc/ssh/hostkey.pub). If libssh2 is built against OpenSSL, this
>> option can be set to NULL.
>
> What if it's not built against OpenSSL, though? For example, the one
> on Ubuntu appears to be built against GnuTLS...
We've never supported anything other than OpenSSL.
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Magnus Hagander | 2012-07-09 09:51:05 | Re: SSH Tunneling implementation |
Previous Message | Magnus Hagander | 2012-07-09 09:34:29 | Re: SSH Tunneling implementation |