Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { AuthMethods []ssh.AuthMethod ClientConfig *ssh.ClientConfig Connection *ssh.Client }
Client holds the client and related package info for an SSH client
func (*Client) GetClientConfig ¶
GetClientConfig returns a SSH client config
func (*Client) GetKeyAuthMethod ¶
GetKeyAuthMethod instantiates an auth method for a key "passPhrase" contains an optional passphrase for an ssh key
func (*Client) GetPasswordAuthMethod ¶
GetPasswordAuthMethod instantiates an auth method using a password
func (*Client) GetSSHAgentAuthMethod ¶
func (c *Client) GetSSHAgentAuthMethod()
GetSSHAgentAuthMethod instantiates an auth method using the SSH agent
func (*Client) NewSession ¶
NewSession instantiates an SSH session
Click to show internal directories.
Click to hide internal directories.