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

# [NAME](#NAME)

libssh2\_agent\_get\_identity\_path - gets the custom ssh-agent socket path

# [SYNOPSIS](#SYNOPSIS)

```
#include <libssh2.h>
const char *
libssh2_agent_get_identity_path(LIBSSH2_AGENT *agent);
```

# [DESCRIPTION](#DESCRIPTION)

Returns the custom agent identity socket path if set using libssh2\_agent\_set\_identity\_path()

# [RETURN VALUE](#RETURN_VALUE)

Returns the socket path on disk.

# [AVAILABILITY](#AVAILABILITY)

Added in libssh2 1.9

# [SEE ALSO](#SEE_ALSO)

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

6 Mar 2019 libssh2

---

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