package
0.0.0-20160820042334-0167c4b5d535
Repository: https://github.com/devastating/go-vcs.git
Documentation: pkg.go.dev
# Functions
NewServer creates a new test SSH server that runs a shell command upon login (with the current directory set to dir).
ParseKnownHosts parses an SSH known_hosts file.
PrivateKey sets the server's private key and host key.
ReadKnownHostsFile reads the known_hosts file at path.
ReadStandardKnownHostsFiles reads and parses the known_hosts files at /etc/ssh/ssh_known_hosts and ~/.ssh/known_hosts.
Verbose enables verbose logging.
# Variables
SamplePrivKey is taken from go.crypto's testdata.
# Type aliases
KnownHosts is a collection of known hosts and their host keys.