Documentation ¶
Index ¶
- func EventuallyConnects(user, pass, host string, t ...int)
- func NewClient(user, pass, host string) (*ssh.Client, *ssh.Session, error)
- func NewSCPClient(user, pass, host string) scp.Client
- func RandStringRunes(n int) string
- func SSHCommand(user, pass, host, cmd string) (string, error)
- func SSHDialTimeout(network, addr string, config *ssh.ClientConfig, timeout time.Duration) (*ssh.Client, error)
- type Conn
- type SSHConn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EventuallyConnects ¶
func NewSCPClient ¶
func NewSCPClient(user, pass, host string) scp.Client
func RandStringRunes ¶
func SSHCommand ¶
func SSHDialTimeout ¶
func SSHDialTimeout(network, addr string, config *ssh.ClientConfig, timeout time.Duration) (*ssh.Client, error)
SSHDialTimeout dials in SSH with a timeout. It sends periodic keepalives such as the remote host don't make the go client sit on Wait()
Types ¶
Click to show internal directories.
Click to hide internal directories.