Merge pull request #4910 from decomposite/HostKeyCallback
Specify InsecureIgnoreHostKey for HostKeyCallback
This commit is contained in:
commit
3bf637f0d3
|
@ -44,6 +44,7 @@ func SSHConfigFunc(config *SSHConfig) func(multistep.StateBag) (*gossh.ClientCon
|
||||||
return &gossh.ClientConfig{
|
return &gossh.ClientConfig{
|
||||||
User: config.Comm.SSHUsername,
|
User: config.Comm.SSHUsername,
|
||||||
Auth: auth,
|
Auth: auth,
|
||||||
|
HostKeyCallback: gossh.InsecureIgnoreHostKey(),
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,6 +50,7 @@ func SSHConfig(username string, password string, privateKeyFile string) func(mul
|
||||||
gossh.KeyboardInteractive(
|
gossh.KeyboardInteractive(
|
||||||
ssh.PasswordKeyboardInteractive(password)),
|
ssh.PasswordKeyboardInteractive(password)),
|
||||||
},
|
},
|
||||||
|
HostKeyCallback: gossh.InsecureIgnoreHostKey(),
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,5 +43,6 @@ func sshConfig(state multistep.StateBag) (*gossh.ClientConfig, error) {
|
||||||
return &gossh.ClientConfig{
|
return &gossh.ClientConfig{
|
||||||
User: config.Comm.SSHUsername,
|
User: config.Comm.SSHUsername,
|
||||||
Auth: auth,
|
Auth: auth,
|
||||||
|
HostKeyCallback: gossh.InsecureIgnoreHostKey(),
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,5 +43,6 @@ func sshConfig(state multistep.StateBag) (*gossh.ClientConfig, error) {
|
||||||
return &gossh.ClientConfig{
|
return &gossh.ClientConfig{
|
||||||
User: config.Comm.SSHUsername,
|
User: config.Comm.SSHUsername,
|
||||||
Auth: auth,
|
Auth: auth,
|
||||||
|
HostKeyCallback: gossh.InsecureIgnoreHostKey(),
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,5 +37,6 @@ func sshConfig(state multistep.StateBag) (*gossh.ClientConfig, error) {
|
||||||
return &gossh.ClientConfig{
|
return &gossh.ClientConfig{
|
||||||
User: config.Comm.SSHUsername,
|
User: config.Comm.SSHUsername,
|
||||||
Auth: auth,
|
Auth: auth,
|
||||||
|
HostKeyCallback: gossh.InsecureIgnoreHostKey(),
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,6 +38,7 @@ func SSHConfigFunc(config SSHConfig) func(multistep.StateBag) (*gossh.ClientConf
|
||||||
return &gossh.ClientConfig{
|
return &gossh.ClientConfig{
|
||||||
User: config.Comm.SSHUsername,
|
User: config.Comm.SSHUsername,
|
||||||
Auth: auth,
|
Auth: auth,
|
||||||
|
HostKeyCallback: gossh.InsecureIgnoreHostKey(),
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,6 +86,7 @@ func SSHConfigFunc(config *SSHConfig) func(multistep.StateBag) (*gossh.ClientCon
|
||||||
return &gossh.ClientConfig{
|
return &gossh.ClientConfig{
|
||||||
User: config.Comm.SSHUsername,
|
User: config.Comm.SSHUsername,
|
||||||
Auth: auth,
|
Auth: auth,
|
||||||
|
HostKeyCallback: gossh.InsecureIgnoreHostKey(),
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue