libssh2\_userauth\_hostbased\_fromfile(3) libssh2 libssh2\_userauth\_hostbased\_fromfile(3)

# [NAME](#NAME)

libssh2\_userauth\_hostbased\_fromfile - convenience macro for [*libssh2\_userauth\_hostbased\_fromfile\_ex(3)*](/man/os/libssh2/libssh2_userauth_hostbased_fromfile_ex.3) calls

# [SYNOPSIS](#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);
```

# [DESCRIPTION](#DESCRIPTION)

This is a macro defined in a public libssh2 header file that is using the underlying function [*libssh2\_userauth\_hostbased\_fromfile\_ex(3)*](/man/os/libssh2/libssh2_userauth_hostbased_fromfile_ex.3).

# [RETURN VALUE](#RETURN_VALUE)

See [*libssh2\_userauth\_hostbased\_fromfile\_ex(3)*](/man/os/libssh2/libssh2_userauth_hostbased_fromfile_ex.3)

# [ERRORS](#ERRORS)

See [*libssh2\_userauth\_hostbased\_fromfile\_ex(3)*](/man/os/libssh2/libssh2_userauth_hostbased_fromfile_ex.3)

# [SEE ALSO](#SEE_ALSO)

[**libssh2\_userauth\_hostbased\_fromfile\_ex(3)**](/man/os/libssh2/libssh2_userauth_hostbased_fromfile_ex.3)

20 Feb 2010 libssh2 1.2.4

---

Document: libssh2_userauth_hostbased_fromfile(3) from libssh2 1.11.1-r11 (Chainguard OS)
Source: https://github.com/libssh2/libssh2.git
