Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoKnownHostsFile = errors.New("sshconfig: missing known hosts file")
ErrNoKnownHostsFile is returned when the KnownHostsFile field is empty.
Functions ¶
This section is empty.
Types ¶
type MetaConfig ¶
type MetaConfig struct { KnownHostsFile string SSHDialTimeout time.Duration // contains filtered or unexported fields }
MetaConfig holds configuration options to use to create SSH client configurations.
func (*MetaConfig) WithAgent ¶
func (c *MetaConfig) WithAgent(user string) (*ssh.ClientConfig, error)
WithAgent returns an SSH ClientConfig that authenticates via the SSH agent.
Click to show internal directories.
Click to hide internal directories.