Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteCmd ¶
Create a new ssh.Session from the SSHClient and execute the SSHCommand
func PublicKeyFile ¶
func PublicKeyFile(filepath string) ssh.AuthMethod
Return a ssh.AuthMethod from a keypair filepath
Types ¶
type SSHClient ¶
type SSHClient struct {
Host string
Port int
Config *ssh.ClientConfig
Cmd *SSHCommand
}
Click to show internal directories.
Click to hide internal directories.