Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a higher-level abstraction around the standard API's SSH configuration, client and connection to the remote machine.
func NewClient ¶
func NewClient(params ClientParams) (*Client, error)
NewClient instantiates a new SSH Client object. N.B.: provide either the key (privateKey) or its path (privateKeyPath).
func NewClientForMachine ¶
func (*Client) RemoteAddr ¶
RemoteAddr returns the remote address of this SSH client.
func (*Client) RunCommand ¶
RunCommand executes the provided command on the remote machine configured in this Client object. A new Session is created for each call to RunCommand. A Client supports multiple interactive sessions.
Click to show internal directories.
Click to hide internal directories.