specify HostKeyCallback for vmware esx5 driver

This commit is contained in:
Megan Marsh 2017-06-21 10:09:11 -07:00
parent 837c35206a
commit 2a6f5f1b13

View file

@ -395,8 +395,9 @@ func (d *ESX5Driver) connect() error {
sshConfig := &ssh.Config{
Connection: ssh.ConnectFunc("tcp", address),
SSHConfig: &gossh.ClientConfig{
User: d.Username,
Auth: auth,
User: d.Username,
Auth: auth,
HostKeyCallback: gossh.InsecureIgnoreHostKey(),
},
}