Documentation
¶
Index ¶
- func Dial(s *config.Server, opts DialOptions) (*ssh.Client, error)
- func Download(client *ssh.Client, remotePath, localPath string) error
- func Run(client *ssh.Client, command string) (int, error)
- func Shell(client *ssh.Client) error
- func Upload(client *ssh.Client, localPath, remotePath string) error
- type DialOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DialOptions ¶
type DialOptions struct {
Timeout time.Duration
Insecure bool // skip host key verification (not recommended)
}
DialOptions controls SSH connection behavior.
Click to show internal directories.
Click to hide internal directories.