knownhosts.HashHostname
// HashHostname hashes the given hostname. The hostname is not
// normalized before hashing.
func HashHostname(hostname string) string
knownhosts.Line
// Line returns a line to add append to the known_hosts files.
func Line(addresses []string, key ssh.PublicKey) string
knownhosts.New
// New creates a host key callback from the given OpenSSH host key
// files. The returned callback is for use in
// ssh.ClientConfig.HostKeyCallback. By preference, the key check
// operates on the hostname if available, i.e. if a server changes its
// IP address, the host key check will still succeed, even though a
// record of the new IP address is not available.
func New(files ...string) (ssh.HostKeyCallback, error)
knownhosts.Normalize
// Normalize normalizes an address into the form used in known_hosts
func Normalize(address string) string