MCPcopy Index your code
hub / github.com/coder/coder / SSHClient

Method SSHClient

codersdk/workspacesdk/agentconn.go:301–303  ·  view source on GitHub ↗

SSHClient calls SSH to create a client

(ctx context.Context)

Source from the content-addressed store, hash-verified

299
300// SSHClient calls SSH to create a client
301func (c *agentConn) SSHClient(ctx context.Context) (*ssh.Client, error) {
302 return c.SSHClientOnPort(ctx, AgentSSHPort)
303}
304
305// SSHClientOnPort calls SSH to create a client on a specific port
306func (c *agentConn) SSHClientOnPort(ctx context.Context, port uint16) (*ssh.Client, error) {

Callers

nothing calls this directly

Calls 1

SSHClientOnPortMethod · 0.95

Tested by

no test coverage detected