mirror of
https://github.com/xor-gate/go-socks5-ssh-proxy
synced 2026-03-23 06:16:35 +01:00
Initial working version
This commit is contained in:
15
vendor/github.com/xor-gate/sshfp/doc.go
generated
vendored
Normal file
15
vendor/github.com/xor-gate/sshfp/doc.go
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
// Package sshfp implements a ssh.HostKeyCallback for resolving SSH host key fingerprints using DNS
|
||||
//
|
||||
// Overview
|
||||
//
|
||||
// The most basic resolver is created as follows (without error checking):
|
||||
//
|
||||
// r := sshfp.NewResolver(sshfp.WithDNSClientConfigFromFile("/etc/resolv.conf"))
|
||||
//
|
||||
// sshClientConfig := &ssh.ClientConfig{
|
||||
// HostKeyCallback: r.HostKeyCallback,
|
||||
// }
|
||||
//
|
||||
// c, err := ssh.Dial("tcp", "remote.example.org:22", sshClientConfig)
|
||||
// ... Check error and do something with the SSHFP validated connected client
|
||||
package sshfp
|
||||
Reference in New Issue
Block a user