MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / dialSSH

Function dialSSH

utils/ssh.go:329–335  ·  view source on GitHub ↗
(ctx context.Context, address string, timeout time.Duration)

Source from the content-addressed store, hash-verified

327}
328
329func dialSSH(ctx context.Context, address string, timeout time.Duration) (net.Conn, error) {
330 dialer := &net.Dialer{
331 Timeout: timeout,
332 KeepAlive: sshKeepAlive,
333 }
334 return dialer.DialContext(ctx, "tcp", address)
335}
336
337var errSSHConnectionCancelled = errors.New("SSH connection cancelled")
338

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected