X Tutup
Skip to content

Commit b63e1e8

Browse files
committed
ssh: adds HostKeyCallback to native client config
Signed-off-by: André Carvalho <asantostc@gmail.com>
1 parent 2cd8d63 commit b63e1e8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libmachine/ssh/client.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,9 @@ func NewNativeConfig(user string, auth *Auth) (ssh.ClientConfig, error) {
151151
}
152152

153153
return ssh.ClientConfig{
154-
User: user,
155-
Auth: authMethods,
154+
User: user,
155+
Auth: authMethods,
156+
HostKeyCallback: ssh.InsecureIgnoreHostKey(),
156157
}, nil
157158
}
158159

0 commit comments

Comments
 (0)
X Tutup