Versions in this module Expand all Collapse all v0 v0.17.0 Apr 30, 2024 v0.16.0 Nov 9, 2023 Changes in this version + const DefaultKeepAlive + const DefaultRetries + const DefaultTimeout + var DefaultSSHDir string + type Dialer interface + Dial func(network, address string) (net.Conn, error) + type NsDialer struct + NsHandle netns.NsHandle + func NewNsDialer(ns netns.NsHandle) *NsDialer + func (d *NsDialer) Dial(network, address string) (net.Conn, error) + type RetryDialer struct + Retries int + func NewRetryDialer() *RetryDialer + func (d *RetryDialer) Dial(network, address string) (c net.Conn, err error) + type SSHAgent struct + Socket string + User string + func NewSSHAgent(dialer Dialer) (*SSHAgent, error) + func (a *SSHAgent) Close() error + func (a *SSHAgent) NewClient(host string) (*ssh.Client, error) + func (a *SSHAgent) NewPasswordClient(host string, user string, password string) (*ssh.Client, error) + func (a *SSHAgent) NewUserClient(host string, user string) (*ssh.Client, error)