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)
| 280 | // SSH pipes the SSH protocol over the returned net.Conn. |
| 281 | // This connects to the built-in SSH server in the workspace agent. |
| 282 | func (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. |