connectUnixAgent

fnSshTransport connectUnixAgent(string path = null, Duration timeout = Duration.zero)

Connects to the agent socket named by SSH_AUTH_SOCK.

This connector lives outside the protocol core so the core never opens sockets; tests and applications open the transport and hand it to SshAgentClient.

Parameters

pathSocket path; defaults to the SSH_AUTH_SOCK environment variable.

Returns

A connected transport, or null when the variable is unset

or empty (so callers can treat "no agent" as a normal case).