libssh2_agent_userauth.3 (929B)
1.\" 2.\" Copyright (c) 2009 by Daiki Ueno 3.\" 4.TH libssh2_agent_userauth 3 "23 Dec 2009" "libssh2" "libssh2" 5.SH NAME 6libssh2_agent_userauth - authenticate a session with a public key, with the help of ssh-agent 7.SH SYNOPSIS 8.nf 9#include <libssh2.h> 10 11int 12libssh2_agent_userauth(LIBSSH2_AGENT *agent, 13 const char *username, 14 struct libssh2_agent_publickey *identity); 15.fi 16.SH DESCRIPTION 17\fIagent\fP - ssh-agent handle as returned by 18.BR libssh2_agent_init(3) 19 20\fIusername\fP - Remote user name to authenticate as. 21 22\fIidentity\fP - Public key to authenticate with, as returned by 23.BR libssh2_agent_get_identity(3) 24 25Attempt public key authentication with the help of ssh-agent. 26.SH RETURN VALUE 27Returns 0 if succeeded, or a negative value for error. 28.SH AVAILABILITY 29Added in libssh2 1.2 30.SH SEE ALSO 31.BR libssh2_agent_init(3) 32.BR libssh2_agent_get_identity(3) 33.BR libssh2_agent_sign(3)