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

Method SSH

codersdk/workspacesdk/agentconn.go:282–284  ·  view source on GitHub ↗

SSH pipes the SSH protocol over the returned net.Conn. This connects to the built-in SSH server in the workspace agent.

(ctx context.Context)

Source from the content-addressed store, hash-verified

280// SSH pipes the SSH protocol over the returned net.Conn.
281// This connects to the built-in SSH server in the workspace agent.
282func (c *agentConn) SSH(ctx context.Context) (*gonet.TCPConn, error) {
283 return c.SSHOnPort(ctx, AgentSSHPort)
284}
285
286// SSHOnPort pipes the SSH protocol over the returned net.Conn.
287// This connects to the built-in SSH server in the workspace agent on the specified port.

Callers

nothing calls this directly

Calls 1

SSHOnPortMethod · 0.95

Tested by

no test coverage detected