MCPcopy
hub / github.com/smallstep/cli / DialAgent

Function DialAgent

internal/sshutil/agent.go:92–94  ·  view source on GitHub ↗

DialAgent returns an ssh.Agent client. It uses the SSH_AUTH_SOCK to connect to the agent.

()

Source from the content-addressed store, hash-verified

90// DialAgent returns an ssh.Agent client. It uses the SSH_AUTH_SOCK to connect
91// to the agent.
92func DialAgent() (*Agent, error) {
93 return dialAgent()
94}
95
96// Close closes the connection to the agent.
97func (a *Agent) Close() error {

Callers 8

doLoginIfNeededFunction · 0.92
loginOnUnauthorizedFunction · 0.92
loginActionFunction · 0.92
certificateActionFunction · 0.92
logoutActionFunction · 0.92
configActionFunction · 0.92
listActionFunction · 0.92
withDefaultAuthMethodFunction · 0.85

Calls 1

dialAgentFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…