Skip to content

Commit

Permalink
Add HostKeyCallback for SSH ClientConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
stanhu committed Sep 25, 2018
1 parent 7a35a4f commit 96b37ab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions helpers/ssh/ssh_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,9 @@ func (s *Client) Connect() error {
}

config := &ssh.ClientConfig{
User: s.User,
Auth: methods,
User: s.User,
Auth: methods,
HostKeyCallback: ssh.InsecureIgnoreHostKey(),
}

connectRetries := s.ConnectRetries
Expand Down

0 comments on commit 96b37ab

Please sign in to comment.