libssh2_userau...tbased_fromfile(3)
π libssh2_userauth_hostbased_fromfile β the girlies' guide π
okay bestie, so this one lives in the libssh2 manual, and it's honestly the shortest little baddie you'll ever meet. no cap. π
β¨ NAME β¨
libssh2_userauth_hostbased_fromfile β it's giving "convenience macro", and it exists purely to make calls to libssh2_userauth_hostbased_fromfile_ex(3) easier. that's the whole vibe. π¦
β¨ SYNOPSIS β¨
#include <libssh2.h>
int
libssh2_userauth_hostbased_fromfile(LIBSSH2_SESSION *session,
const char *username,
const char *publickey,
const char *privatekey,
const char *passphrase,
const char *hostname);
look at that parameter list. six little arguments, all lined up, main character energy. π
β¨ DESCRIPTION β¨
so here's the tea π: this is not a full-blown function, bestie. it's a macro β and it's defined in a public libssh2 header file, so it's just sitting there ready for you. and what does that macro do? it's out here using the underlying function libssh2_userauth_hostbased_fromfile_ex(3). that's it. that's the whole job. the macro is the cute little wrapper, the _ex function is the one doing the actual heavy lifting. iykyk. β¨
β¨ RETURN VALUE β¨
ngl, this one doesn't do its own thing here β it says See libssh2_userauth_hostbased_fromfile_ex(3). go peek at that page, it's got the answers. π
β¨ ERRORS β¨
same situation, bestie β See libssh2_userauth_hostbased_fromfile_ex(3). the _ex page is holding all the error lore. π«Ά
β¨ SEE ALSO β¨
libssh2_userauth_hostbased_fromfile_ex(3)β the icon, the blueprint, the one this macro is obsessed with π
real talk: since this page keeps pointing you at libssh2_userauth_hostbased_fromfile_ex(3) for the return values and the errors, that page is your actual bestie for the details. this one's just the intro. π
mwah π that's the whole page, and it came straight out of libssh2 1.2.4, dated 20 Feb 2010. slay, you're done, go read the _ex page now β¨π
π¦ where this page comes from
- alpine 3.22: libssh2-doc 1.11.1-r3 Β· BSD-3-Clause
- alpine 3.23: libssh2-doc 1.11.1-r4 Β· BSD-3-Clause
- alpine 3.24: libssh2-doc 1.11.1-r4 Β· BSD-3-Clause
- arch rolling: libssh2 1.11.1-7 Β· BSD-3-Clause
- debian trixie: libssh2-1-dev 1.11.1-1+deb13u1 Β· BSD3
- debian trixie: libssh2-1-dev 1.11.1-1+deb13u2 Β· BSD3
- epel 10: libssh2-docs 1.11.1-9.el10_3 Β· BSD-3-Clause
- epel 9: libssh2-docs 1.11.1-9.el9 Β· BSD-3-Clause
- fedora 43: libssh2-docs 1.11.1-4.fc43 Β· BSD-3-Clause
- fedora 43: libssh2-docs 1.11.1-9.fc43 Β· BSD-3-Clause
- fedora 44: libssh2-docs 1.11.1-5.fc44 Β· BSD-3-Clause
- fedora 44: libssh2-docs 1.11.1-9.fc44 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- ubuntu questing: libssh2-1-dev 1.11.1-1build1
- ubuntu questing: libssh2-1-dev 1.11.1-1ubuntu0.25.10.2
- ubuntu resolute: libssh2-1-dev 1.11.1-1build2 Β· BSD3
- ubuntu resolute: libssh2-1-dev 1.11.1-1ubuntu0.26.04.4 Β· BSD3
- ubuntu stonking: libssh2-1-dev 1.11.1-6 Β· BSD3
- π the page's license: BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms