fix for host key
This commit is contained in:
parent
b25c7ea5ea
commit
198d0ca4b9
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user