Subject: using libssh2_userauth_publickey_frommemory()

using libssh2_userauth_publickey_frommemory()

From: Skip Carter <>
Date: Fri, 27 Mar 2020 10:16:31 -0700


I have written an application using 1.9.0

I authenticate using libssh2_userauth_publickey_fromfile() and it
works just fine. But when I switch to
it fails.

I am guessing that the keydata is wrong. Reading the documentation I
find it vague. Is the keydata the string you would get from just
loading key as a string ? just the base-64 data ? the data that you
would get from base-64 decoding the string to binary ? I have tried
all three interpretations of what "keydata" could mean. It still

Any insights ?

Dr Everett (Skip) Carter  0xF29BF36844FB7922
Taygeta Scientific Inc
607 Charles Ave
Seaside CA 93955
831-641-0645 x103


Received on 2020-03-27