package
2.0.0-alpha.3
Repository: https://github.com/k0sproject/rig.git
Documentation: pkg.go.dev

# Functions

KnownHostsFileCallback returns a HostKeyCallback that uses a known hosts file to verify host keys.
StaticKeyCallback returns a HostKeyCallback that checks the host key against a given host key.

# Variables

ErrCheckHostKey is returned when the callback could not be created.
ErrHostKeyMismatch is returned when the host key does not match the host key or a key in known_hosts file.
nolint:gosec.
KnownHostsPathFromEnv returns the path to a known_hosts file from the environment variable SSH_KNOWN_HOSTS.