2 .\" Copyright (c) 2009 by Daiki Ueno
4 .TH libssh2_agent_userauth 3 "23 Dec 2009" "libssh2 1.2" "libssh2 manual"
6 libssh2_agent_userauth - authenticate a session with a public key, with the help of ssh-agent
10 int libssh2_agent_userauth(LIBSSH2_AGENT *agent,
12 struct libssh2_agent_publickey *identity);
14 \fIagent\fP - ssh-agent handle as returned by
15 .BR libssh2_agent_init(3)
17 \fIusername\fP - Remote user name to authenticate as.
19 \fIidentity\fP - Public key to authenticate with, as returned by
20 .BR libssh2_agent_get_identity(3)
22 Attempt public key authentication with the help of ssh-agent.
24 Returns 0 if succeeded, or a negative value for error.
28 .BR libssh2_agent_init(3)
29 .BR libssh2_agent_get_identity(3)