Documentation ¶
Overview ¶
Package sshc provides sshc.NewClient() that returns *ssh.Client using ssh_config(5)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config is the type for the SSH Client config. not ssh_config.
func (*Config) DialWithConfig ¶
DialWithConfig returns *ssh.Client using Config
type Option ¶
Option is the type for change Config.
func AppendConfigPath ¶
AppendConfigPath returns Option that append ssh_config path to Config.configpaths.
func ClearConfigPath ¶
func ClearConfigPath() Option
ClearConfigPath returns Option thet clear Config.configpaths,
func Knownhosts ¶
Knownhosts returns Option that override Config.knownhosts.
func Passphrase ¶
Passphrase returns Option that set Config.passphrase for set SSH key passphrase.
func UnshiftConfigPath ¶
UnshiftConfigPath returns Option that unshift ssh_config path to Config.configpaths.
Click to show internal directories.
Click to hide internal directories.