diff --git a/pkg/backy/ssh.go b/pkg/backy/ssh.go index 6ba5550..4914e4f 100644 --- a/pkg/backy/ssh.go +++ b/pkg/backy/ssh.go @@ -93,7 +93,7 @@ func (remoteConfig *Host) ConnectToSSHHost() (*ssh.Client, error) { println("HostName: " + remoteConfig.HostName[0]) } } - hostKey := getHostKey(remoteConfig.Host) + hostKey := getHostKey(remoteConfig.HostName[0]) privateKey, err := os.ReadFile(remoteConfig.PrivateKeyPath) if err != nil {