Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultSSHTimeout = 10 * time.Second
Variables ¶
This section is empty.
Functions ¶
func SSHWithDeadline ¶
func SSHWithDeadline(ctx context.Context, network string, addr string, config *ssh.ClientConfig) (*ssh.Client, error)
SSHWithDeadline performs a dial with the timeout specified in config.Timeout. If the dial is successful, config.Timeout is again used to setup a deadline for the SSH key exchange to be performed by. Canceling the context cancels both the dial and key exchange immediately. See https://github.com/golang/go/issues/15113
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.