Versions in this module Expand all Collapse all v0 v0.0.12 Feb 8, 2021 Changes in this version + var ErrHandshakeTimeout = fmt.Errorf("Timeout during SSH handshake") + func BastionConnectFunc(bProto string, bAddr string, bConf *ssh.ClientConfig, proto string, ...) func() (net.Conn, error) + func ConnectFunc(network, addr string) func() (net.Conn, error) + func KeyboardInteractive(c io.ReadWriter) ssh.KeyboardInteractiveChallenge + func New(address string, config *Config) (result *comm, err error) + func PasswordKeyboardInteractive(password string) ssh.KeyboardInteractiveChallenge + func ProxyConnectFunc(socksProxy string, socksAuth *proxy.Auth, network, addr string) func() (net.Conn, error) + func ProxyServe(l net.Listener, done <-chan struct{}, dialer func() (net.Conn, error)) + type Config struct + Connection func() (net.Conn, error) + DisableAgentForwarding bool + HandshakeTimeout time.Duration + KeepAliveInterval time.Duration + Pty bool + SSHConfig *ssh.ClientConfig + Timeout time.Duration + Tunnels []TunnelSpec + UseSftp bool + type TunnelDirection int + const LocalTunnel + const RemoteTunnel + const UnsetTunnel + type TunnelSpec struct + Direction TunnelDirection + ForwardAddr string + ForwardType string + ListenAddr string + ListenType string