Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultUsername = "zeta"
Variables ¶
View Source
var DefaultUserSettings = &config.UserSettings{ IgnoreErrors: false, IgnoreMatchDirective: true, SystemConfigFinder: config.SystemConfigFinder, UserConfigFinder: config.UserConfigFinder, }
View Source
var (
W = tr.W
)
Functions ¶
func NewKnownHostsCallback ¶ added in v0.17.0
func NewKnownHostsCallback(files ...string) (ssh.HostKeyCallback, error)
NewKnownHostsCallback returns ssh.HostKeyCallback based on a file based on a known_hosts file. http://man.openbsd.org/sshd#SSH_KNOWN_HOSTS_FILE_FORMAT
If list of files is empty, then it will be read from the SSH_KNOWN_HOSTS environment variable, example:
/home/foo/custom_known_hosts_file:/etc/custom_known/hosts_file
If SSH_KNOWN_HOSTS is not set the following file locations will be used:
~/.ssh/known_hosts /etc/ssh/ssh_known_hosts
Types ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package ssh_config provides tools for manipulating SSH config files.
|
Package ssh_config provides tools for manipulating SSH config files. |
Click to show internal directories.
Click to hide internal directories.