Add InsecureIgnoreHostKey to bastion connection

This commit is contained in:
Rickard von Essen 2017-05-28 20:35:01 +02:00
parent 2164700162
commit d4ecf4acb3
No known key found for this signature in database
GPG Key ID: E0C0327388876CBA

View File

@ -230,7 +230,8 @@ func sshBastionConfig(config *Config) (*gossh.ClientConfig, error) {
}
return &gossh.ClientConfig{
User: config.SSHBastionUsername,
Auth: auth,
User: config.SSHBastionUsername,
Auth: auth,
HostKeyCallback: gossh.InsecureIgnoreHostKey(),
}, nil
}