libssh2_agent_set_identity_path(3)

libssh2_agent_set_identity_path3

Set an ssh-agent socket path on disk

Usage

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

Overview

Allows a custom agent identity socket path instead of the default SSH_AUTH_SOCK env value

Return value

Returns void

Releases

4 releases since Debian 11 (Bullseye); the text changed 1 time.

  1. 11–12
  2. 13–Arch

Availability

Added in libssh2 1.9

From libssh2 1.11.1-7 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.