Documentation
¶
Overview ¶
Package ssh provides a dutagent module that connects to the DUT via Secure Shell and executes commands that are passed to the module from the dutctl client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SSH ¶
type SSH struct {
Host string // Host is the hostname or IP address of the DUT.
Port int // Port is the port number of the SSH server on the DUT. Default is 22.
User string // User is the username to use for the SSH connection. Default is "root".
Password string // Password is the password to use for the SSH connection. Default is "".
PrivateKey string // PrivateKey is the path to the dutagent's private key file.
HostKey string // HostKey is the server host key to use for the SSH connection.
// contains filtered or unexported fields
}
SSH is a module that executes commands on a remote host. It is non-interactive and closes the connection after the passed command is executed.
Click to show internal directories.
Click to hide internal directories.