fix for host key

This commit is contained in:
Andrew Woodlee 2023-01-02 14:46:47 -06:00
parent b25c7ea5ea
commit 198d0ca4b9

View File

@ -93,7 +93,7 @@ func (remoteConfig *Host) ConnectToSSHHost() (*ssh.Client, error) {
println("HostName: " + remoteConfig.HostName[0]) println("HostName: " + remoteConfig.HostName[0])
} }
} }
hostKey := getHostKey(remoteConfig.Host) hostKey := getHostKey(remoteConfig.HostName[0])
privateKey, err := os.ReadFile(remoteConfig.PrivateKeyPath) privateKey, err := os.ReadFile(remoteConfig.PrivateKeyPath)
if err != nil { if err != nil {