1libssh2_agent_userauth(3)       libssh2 manual       libssh2_agent_userauth(3)
2
3
4

NAME

6       libssh2_agent_userauth - authenticate a session with a public key, with
7       the help of ssh-agent
8

SYNOPSIS

10       #include <libssh2.h>
11
12       int libssh2_agent_userauth(LIBSSH2_AGENT *agent,
13                                  const char *username,
14                                  struct libssh2_agent_publickey *identity);
15

DESCRIPTION

17       agent - ssh-agent handle as returned by libssh2_agent_init(3)
18
19       username - Remote user name to authenticate as.
20
21       identity - Public  key  to  authenticate  with,  as  returned  by  lib‐
22       ssh2_agent_get_identity(3)
23
24       Attempt public key authentication with the help of ssh-agent.
25

RETURN VALUE

27       Returns 0 if succeeded, or a negative value for error.
28

AVAILABILITY

30       Added in libssh2 1.2
31

SEE ALSO

33       libssh2_agent_init(3) libssh2_agent_get_identity(3)
34
35
36
37libssh2 1.2                       23 Dec 2009        libssh2_agent_userauth(3)
Impressum