Method FromEnvironment
- Namespace
- SshSharp
- Assembly
- SshSharp.dll
FromEnvironment()
The user's agent, as ssh finds it: SSH_AUTH_SOCK; on Windows, when that is not set, the OpenSSH agent service's pipe, or
PuTTY's Pageant (0.75 and later) when only Pageant is running. Null when there is none to try. Whether an agent is actually running
shows on the first request.
public static SshAgent? FromEnvironment()