Versions in this module Expand all Collapse all v1 v1.5.1 Dec 24, 2024 v1.5.0 Dec 11, 2024 v1.4.1 Dec 11, 2024 v1.4.0 Jun 3, 2023 Changes in this version + var Ciphers = []string + var KeyExchanges = []string + var Outputs = []io.Writer + func CoverDefaults(node interface{}, defaults interface{}, override bool) + func TeeReader(r io.Reader, wList ...io.Writer) io.Reader + type BufferedReader struct + func NewBufferedReader(r io.Reader, wList ...io.Writer) *BufferedReader + func (br BufferedReader) ReadUntil(pattern string) (result []byte, err error) + func (br BufferedReader) ReadUntilEOF() (result []byte) + type Config struct + Defaults *Node + Nodes []*Node + Settings *Settings + func LoadConfig(filenames ...string) (config *Config, err error) + func (c *Config) String() string + type Node struct + Alias string + Host string + KeyPath string + Name string + Passphrase string + Password string + Port int + User string + func GetNode(config *Config, target string, chosen *Node, defaultsOnly bool, ...) (node *Node) + func (n *Node) AuthMethods() (authMethods []ssh.AuthMethod) + func (n *Node) SetDefaults(defaults *Node, settings *Settings) + func (n *Node) SetLogin(logins []*Node, override bool) + func (n Node) String() string + type SSHClient struct + Host string + Port int + func (c *SSHClient) CurrentClient() *ssh.Client + func (c *SSHClient) CurrentSession() *ssh.Session + func (c *SSHClient) Login(user, password string) (err error) + func (c *SSHClient) LoginAuth(user string, authMethods []ssh.AuthMethod) (err error) + func (c *SSHClient) RequestTerminal() (fd int, state *term.State, err error) + func (c *SSHClient) RestoreTerminal(fd int, state *term.State) error + func (c *SSHClient) Run(cmd string) (output string, err error) + func (c *SSHClient) Shell() error + func (c *SSHClient) Start(cmd string) error + func (c *SSHClient) Wait() error + type Settings struct + Domain string + Logins []*Node + type WriteCloser struct + func (w *WriteCloser) WriteLine(s string) (n int, err error) + func (w *WriteCloser) WriteString(s string) (n int, err error)