1libssh2_agent_userauth(3)           libssh2          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
13       libssh2_agent_userauth(LIBSSH2_AGENT *agent,
14                              const char *username,
15                              struct libssh2_agent_publickey *identity);
16

DESCRIPTION

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

RETURN VALUE

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

AVAILABILITY

31       Added in libssh2 1.2
32

SEE ALSO

34       libssh2_agent_init(3)         libssh2_agent_get_identity(3)        lib‐
35       ssh2_agent_sign(3)
36
37
38
39libssh2                           23 Dec 2009        libssh2_agent_userauth(3)
Impressum