From d4ecf4acb3a0e5b8b86e7b9fafe0ba96c5032413 Mon Sep 17 00:00:00 2001 From: Rickard von Essen Date: Sun, 28 May 2017 20:35:01 +0200 Subject: [PATCH] Add InsecureIgnoreHostKey to bastion connection --- helper/communicator/step_connect_ssh.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/helper/communicator/step_connect_ssh.go b/helper/communicator/step_connect_ssh.go index ec9ab2184..2daee1be6 100644 --- a/helper/communicator/step_connect_ssh.go +++ b/helper/communicator/step_connect_ssh.go @@ -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 }