diff --git a/ssh.go b/ssh.go index eb3cefb..e84bf60 100644 --- a/ssh.go +++ b/ssh.go @@ -139,6 +139,9 @@ func (c *SSHClient) ConnectWith(host string, dialer SSHDialFunc) error { Auth: []ssh.AuthMethod{ authMethod, }, + HostKeyCallback: func(hostname string, remote net.Addr, key ssh.PublicKey) error { + return nil + }, } c.conn, err = dialer("tcp", c.host, config)