|
|
|
@ -113,8 +113,7 @@ func (remoteConfig *Host) ConnectToSSHHost() (*ssh.Client, error) {
|
|
|
|
|
println("Connecting to " + host)
|
|
|
|
|
sshClient, connectErr = ssh.Dial("tcp", host, sshConfig)
|
|
|
|
|
if connectErr != nil {
|
|
|
|
|
continue
|
|
|
|
|
// panic(fmt.Errorf("error when connecting to host %s: %w", host, connectErr))
|
|
|
|
|
panic(fmt.Errorf("error when connecting to host %s: %w", host, connectErr))
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
break
|
|
|
|
|