Documentation ¶
Overview ¶
Package sshconfig provides functionality to parse SSH configuration and return real host information to users.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveHost ¶
ResolveHost takes an address and returns a resolved hostname based on ~/.ssh/config and /etc/ssh/ssh_config.
func ResolveHostFromFiles ¶
func ResolveHostFromFiles(addr string, configFiles []FileParam) (resolvedHost, resolvedProxyCommand string, err error)
ResolveHostFromFiles takes an address, base directory (affects default include path) and a list of SSH configuration files and returns the resolved hostname.
Types ¶
Click to show internal directories.
Click to hide internal directories.