This commit is contained in:
Andrew Woodlee 2023-01-02 13:25:39 -06:00
parent 34af511a95
commit 2f73df73b1

View File

@ -108,6 +108,7 @@ func (remoteConfig *Host) ConnectToSSHHost() (*ssh.Client, error) {
HostKeyCallback: ssh.FixedHostKey(hostKey), HostKeyCallback: ssh.FixedHostKey(hostKey),
} }
for _, host := range remoteConfig.HostName { for _, host := range remoteConfig.HostName {
println("Connecting to " + host)
sshClient, connectErr = ssh.Dial("tcp", host, sshConfig) sshClient, connectErr = ssh.Dial("tcp", host, sshConfig)
if connectErr != nil { if connectErr != nil {
continue continue