(network, addr string, config *ssh.ClientConfig)
| 167 | var realTimeoutDialer sshDialer = &timeoutDialer{&realSSHDialer{}, sshDialTimeout} |
| 168 | |
| 169 | func (d *timeoutDialer) Dial(network, addr string, config *ssh.ClientConfig) (*ssh.Client, error) { |
| 170 | config.Timeout = d.timeout |
| 171 | return d.dialer.Dial(network, addr, config) |
| 172 | } |
| 173 | |
| 174 | // RunSSHCommand returns the stdout, stderr, and exit code from running cmd on |
| 175 | // host as specific user, along with any SSH-level error. |