Skip to content

Commit

Permalink
Add HostKeyCallback so that check-ssh can perform SSH connection.
Browse files Browse the repository at this point in the history
  • Loading branch information
astj committed May 16, 2017
1 parent 9d37c42 commit a5f9253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check-ssh/lib/check-ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (opts *sshOpts) makeClientConfig() (*ssh.ClientConfig, error) {
authenticities = append(authenticities, ssh.PublicKeys(signer))
}

config := &ssh.ClientConfig{User: opts.User, Auth: authenticities}
config := &ssh.ClientConfig{User: opts.User, Auth: authenticities, HostKeyCallback: ssh.InsecureIgnoreHostKey()}
return config, nil
}

Expand Down

0 comments on commit a5f9253

Please sign in to comment.