Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NoAuthMethods = errors.New("no auth methods could be used")
Functions ¶
func IdentityAuth ¶
func IdentityAuth(files ...string) (ssh.AuthMethod, error)
Types ¶
type Config ¶
type Config struct { Port int `json:"port,string,omitempty"` StrictHostKeyChecking *Bool `json:"stricthostkeychecking,omitempty"` GlobalKnownHostsFile string `json:"globalknownhostsfile,omitempty"` UserKnownHostsFile string `json:"userknownhostsfile,omitempty"` TcpKeepAlive *Bool `json:"tcpkeepalive,omitempty"` ConnectTimeout Duration `json:"connecttimeout,omitempty"` ConnectionAttempts int `json:"connectionattempts,string,omitempty"` ServerAliveInterval Duration `json:"serveraliveinterval,omitempty"` ServerAliveCountMax int `json:"serveralivecountmax,string,omitempty"` Hostname string `json:"hostname,omitempty"` User string `json:"user,omitempty"` IdentityFile string `json:"identityfile,omitempty"` Host Host `json:"host,omitempty"` }
func ParseOptions ¶
func (*Config) Callback ¶
func (c *Config) Callback() ssh.ConfigCallback
type Configs ¶
type Configs []*Config
func ParseConfigFile ¶
func (Configs) Callback ¶
func (c Configs) Callback() ssh.ConfigCallback
func (Configs) LazyCallback ¶
func (c Configs) LazyCallback() ssh.ConfigCallback
Click to show internal directories.
Click to hide internal directories.