Versions in this module Expand all Collapse all v1 v1.2.0 Jun 10, 2022 Changes in this version + type Client struct + func Dial(network, addr string, config *ssh.ClientConfig) (*Client, error) + func DialWithConnection(conn net.Conn, addr string, config *ssh.ClientConfig) (*Client, error) + func DialWithKey(addr, user, keyfile string) (*Client, error) + func DialWithKeyWithPassphrase(addr, user, keyfile string, passphrase string) (*Client, error) + func DialWithPasswd(addr, user, passwd string) (*Client, error) + func (c *Client) Close() error + func (c *Client) Cmd(cmd string) *RemoteScript + func (c *Client) Script(script string) *RemoteScript + func (c *Client) ScriptFile(fname string) *RemoteScript + func (c *Client) Shell() *RemoteShell + func (c *Client) Terminal(config *TerminalConfig) *RemoteShell + func (c *Client) UnderlyingClient() *ssh.Client + type RemoteScript struct + func (rs *RemoteScript) Cmd(cmd string) *RemoteScript + func (rs *RemoteScript) Output() ([]byte, error) + func (rs *RemoteScript) Run() error + func (rs *RemoteScript) SetStdio(stdout, stderr io.Writer) *RemoteScript + func (rs *RemoteScript) SmartOutput() ([]byte, error) + type RemoteShell struct + func (rs *RemoteShell) SetStdio(stdin io.Reader, stdout, stderr io.Writer) *RemoteShell + func (rs *RemoteShell) Start() error + type TerminalConfig struct + Height int + Modes ssh.TerminalModes + Term string + Weight int