dial

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2023 License: MIT Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL