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)
| 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. |
| 127 | func 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 | |
| 131 | func RobustSSHConnectWithOptions(ctx context.Context, ip, keyFile string, port int, maxWait int, callback SSHProgressCallback, opts *SSHConnectOptions) (*SSHClient, error) { |
| 132 | config, err := newSSHConfig("ubuntu", keyFile) |
no test coverage detected