Documentation ¶ Index ¶ func Close(cli *ssh.Client, sess *ssh.Session) error func Exec(addr, user, pwd string, privateKey []byte, timeout time.Duration, cmd string) (stdout string, stderr string, err error) func NewClient(addr, user, pwd string, privateKey []byte, timeout time.Duration) (*ssh.Client, *ssh.Session, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Close ¶ added in v0.8.2 func Close(cli *ssh.Client, sess *ssh.Session) error func Exec ¶ added in v0.11.3 func Exec(addr, user, pwd string, privateKey []byte, timeout time.Duration, cmd string) (stdout string, stderr string, err error) func NewClient ¶ func NewClient(addr, user, pwd string, privateKey []byte, timeout time.Duration) (*ssh.Client, *ssh.Session, error) Types ¶ This section is empty. Source Files ¶ View all Source files ssh.go Click to show internal directories. Click to hide internal directories.