libssh2\_agent\_set\_identity\_path(3) libssh2 libssh2\_agent\_set\_identity\_path(3)

# [NAME](#NAME)

libssh2\_agent\_set\_identity\_path - set an ssh-agent socket path on disk

# [SYNOPSIS](#SYNOPSIS)

```
#include <libssh2.h>
void
libssh2_agent_set_identity_path(LIBSSH2_AGENT *agent, const char *path);
```

# [DESCRIPTION](#DESCRIPTION)

Allows a custom agent identity socket path instead of the default SSH\_AUTH\_SOCK env value

# [RETURN VALUE](#RETURN_VALUE)

Returns void

# [AVAILABILITY](#AVAILABILITY)

Added in libssh2 1.9

# [SEE ALSO](#SEE_ALSO)

[**libssh2\_agent\_init(3)**](/man/os/libssh2/libssh2_agent_init.3) [**libssh2\_agent\_get\_identity\_path(3)**](/man/os/libssh2/libssh2_agent_get_identity_path.3)

6 Mar 2019 libssh2

---

Document: libssh2_agent_set_identity_path(3) from libssh2 1.11.1-r10 (Chainguard OS)
Source: https://github.com/libssh2/libssh2.git
