D'oh, that was it. Thanks Ján!
On Wed, Feb 9, 2022 at 11:45 AM Ján Osuský wrote:
>
> Oh, I see, the key is not a string, it contains binary data and (usually)
> starts with a zero byte :-).
>
> On Wednesday 9. February 2022, 11:30:15 (+01:00), Jente Hidskes wrote:
>
> > Hi Ján,
> >
> > Thanks fo
Oh, I see, the key is not a string, it contains binary data and (usually)
starts with a zero byte :-).
On Wednesday 9. February 2022, 11:30:15 (+01:00), Jente Hidskes wrote:
> Hi Ján,
>
> Thanks for your reply! I quickly tested with libssh2_session_startup
> but it makes no difference unfortunat
Hi Ján,
Thanks for your reply! I quickly tested with libssh2_session_startup
but it makes no difference unfortunately. It's good to know what I
need is possible with libssh2, though!
I did find that if I retrieve the length of the key, I get 279 (and
the key type is PLAIN). Yet printing it still
Hi Jente,
we use libssh2 for a client implementation too and we use both the
fingerprint (with libssh2_hostkey_hash) and the host key itself.
Function "libssh2_session_hostkey" returns pointer to the key as expected,
and also sets the key length and type.
In our code (that is not new anymore
Hey folks,
I am working on a small SFTP client using libssh2. I would like for
this client to persist the host key of the server it is connecting to,
but I seem to be unable to get a hold of it.
After initialising libssh2 and calling libssh2_session_handshake, I am
able to print the host key fing