1libssh2_channel_request_auth_agent(3)libsshl2ibssh2_channel_request_auth_agent(3)
2
3
4
6 libssh2_channel_request_auth_agent - request agent forwarding for a
7 session
8
10 #include <libssh2.h>
11
12 int
13 libssh2_channel_request_auth_agent(LIBSSH2_CHANNEL *channel);
14
16 Request that agent forwarding be enabled for this SSH session. This
17 sends the request over this specific channel, which causes the agent
18 listener to be started on the remote side upon success. This agent lis‐
19 tener will then run for the duration of the SSH session.
20
21 channel - Previously opened channel instance such as returned by lib‐
22 ssh2_channel_open_ex(3)
23
25 Return 0 on success or negative on failure. It returns LIBSSH2_ER‐
26 ROR_EAGAIN when it would otherwise block. While LIBSSH2_ERROR_EAGAIN is
27 a negative number, it is not really a failure per se.
28
29
30
31libssh2 0.15 1 Jun 20l0i7bssh2_channel_request_auth_agent(3)