From 198d0ca4b9458869a24d039e4190a194a175032e Mon Sep 17 00:00:00 2001 From: Andrew Woodlee Date: Mon, 2 Jan 2023 14:46:47 -0600 Subject: [PATCH] fix for host key --- pkg/backy/ssh.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {