diff --git a/obfssh/ssh.go b/obfssh/ssh.go index ca4e300..3accecb 100644 --- a/obfssh/ssh.go +++ b/obfssh/ssh.go @@ -154,6 +154,11 @@ func main() { User: cfg.Username, Auth: auth, Timeout: 10 * time.Second, + HostKeyCallback: func(hostname string, remote net.Addr, + key ssh.PublicKey) error { + obfssh.Log(obfssh.INFO, "%s %s %+v", hostname, remote, key) + return nil + }, } // parse environment proxy