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

Function RobustSSHConnectWithProgress

utils/ssh.go:127–129  ·  view source on GitHub ↗

RobustSSHConnectWithProgress establishes an SSH connection with retry logic and progress callbacks. The callback is invoked on each retry attempt with structured status information.

(ctx context.Context, ip, keyFile string, port int, maxWait int, callback SSHProgressCallback)

Source from the content-addressed store, hash-verified

125// RobustSSHConnectWithProgress establishes an SSH connection with retry logic and progress callbacks.
126// The callback is invoked on each retry attempt with structured status information.
127func RobustSSHConnectWithProgress(ctx context.Context, ip, keyFile string, port int, maxWait int, callback SSHProgressCallback) (*SSHClient, error) {
128 return RobustSSHConnectWithOptions(ctx, ip, keyFile, port, maxWait, callback, nil)
129}
130
131func RobustSSHConnectWithOptions(ctx context.Context, ip, keyFile string, port int, maxWait int, callback SSHProgressCallback, opts *SSHConnectOptions) (*SSHClient, error) {
132 config, err := newSSHConfig("ubuntu", keyFile)

Callers 2

runConnectWithOptionsFunction · 0.92
RobustSSHConnectCtxFunction · 0.85

Calls 1

Tested by

no test coverage detected