Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultOptions = &Options{ ExpectedPrompt: "password:", ExpectedFailure: "denied", Timeout: time.Second * 10, AutoConfirmHostAuthenticity: true, Shell: "", }
Functions ¶
Types ¶
type Options ¶
type Options struct { ExpectedPrompt string // ExpectedPrompt is the string to treat as the password prompt e.g. "Password: " ExpectedFailure string // ExpectedFailure is the string to treat as an indication of failure e.g. "Incorrect password" Timeout time.Duration // Timeout is the duration to wait for a prompt/failure before giving up AutoConfirmHostAuthenticity bool // AutoConfirmHostAuthenticity will type 'yes' on host authenticity confirmations when set Shell string // Shell is a path to the shell to use e.g. /bin/bash - leave blank to use user shell }
Click to show internal directories.
Click to hide internal directories.