diff --git a/examples/buffered-read-benchmark/main.go b/examples/buffered-read-benchmark/main.go index 32c4d1f3..36ac6d72 100644 --- a/examples/buffered-read-benchmark/main.go +++ b/examples/buffered-read-benchmark/main.go @@ -42,6 +42,7 @@ func main() { config := ssh.ClientConfig{ User: *USER, Auth: auths, + HostKeyCallback: ssh.InsecureIgnoreHostKey(), } addr := fmt.Sprintf("%s:%d", *HOST, *PORT) conn, err := ssh.Dial("tcp", addr, &config) diff --git a/examples/buffered-write-benchmark/main.go b/examples/buffered-write-benchmark/main.go index 0c38db68..d1babedb 100644 --- a/examples/buffered-write-benchmark/main.go +++ b/examples/buffered-write-benchmark/main.go @@ -42,6 +42,7 @@ func main() { config := ssh.ClientConfig{ User: *USER, Auth: auths, + HostKeyCallback: ssh.InsecureIgnoreHostKey(), } addr := fmt.Sprintf("%s:%d", *HOST, *PORT) conn, err := ssh.Dial("tcp", addr, &config) diff --git a/examples/streaming-read-benchmark/main.go b/examples/streaming-read-benchmark/main.go index dc901e97..87afc5a3 100644 --- a/examples/streaming-read-benchmark/main.go +++ b/examples/streaming-read-benchmark/main.go @@ -43,6 +43,7 @@ func main() { config := ssh.ClientConfig{ User: *USER, Auth: auths, + HostKeyCallback: ssh.InsecureIgnoreHostKey(), } addr := fmt.Sprintf("%s:%d", *HOST, *PORT) conn, err := ssh.Dial("tcp", addr, &config) diff --git a/examples/streaming-write-benchmark/main.go b/examples/streaming-write-benchmark/main.go index 07a9ddb7..8f432d39 100644 --- a/examples/streaming-write-benchmark/main.go +++ b/examples/streaming-write-benchmark/main.go @@ -43,6 +43,7 @@ func main() { config := ssh.ClientConfig{ User: *USER, Auth: auths, + HostKeyCallback: ssh.InsecureIgnoreHostKey(), } addr := fmt.Sprintf("%s:%d", *HOST, *PORT) conn, err := ssh.Dial("tcp", addr, &config)