libssh2_userauth_publickey_fromfile(3)

libssh2_userauth_publickey_fromfile3

Convenience macro for libssh2_userauth_publickey_fromfile_ex(3) calls

Usage

#include <libssh2.h>
int
libssh2_userauth_publickey_fromfile(LIBSSH2_SESSION *session,
                                    const char *username,
                                    const char *publickey,
                                    const char *privatekey,
                                    const char *passphrase);

Overview

This is a macro defined in a public libssh2 header file that is using the underlying function libssh2_userauth_publickey_fromfile_ex(3).

Return value

See libssh2_userauth_publickey_fromfile_ex(3)

Errors

See libssh2_userauth_publickey_fromfile_ex(3)

Releases

10 releases since Debian 5.0 (Lenny); the text changed 3 times.

  1. 5.0
  2. 6.0
  3. 7–12
  4. 13–Arch

From libssh2 1.11.1-7 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.