MCPcopy Index your code
hub / github.com/tailscale/tailscale / InsecureIgnoreHostKey

Function InsecureIgnoreHostKey

tempfork/sshtest/ssh/client.go:255–259  ·  view source on GitHub ↗

InsecureIgnoreHostKey returns a function that can be used for ClientConfig.HostKeyCallback to accept any host key. It should not be used for production code.

()

Source from the content-addressed store, hash-verified

253// ClientConfig.HostKeyCallback to accept any host key. It should
254// not be used for production code.
255func InsecureIgnoreHostKey() HostKeyCallback {
256 return func(hostname string, remote net.Addr, key PublicKey) error {
257 return nil
258 }
259}
260
261type fixedHostKey struct {
262 key PublicKey

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…