Documentation ¶ Index ¶ func GenerateNewSSHKeys() ([]byte, []byte, error) func IsResponding(ip string) bool type SSHClient func NewClient(host string, user string, privKeyFile string) (*SSHClient, error) func (c *SSHClient) RunAsSudo(command string) error func (c *SSHClient) RunAsUser(command string) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GenerateNewSSHKeys ¶ func GenerateNewSSHKeys() ([]byte, []byte, error) Generate public and private rsa keys func IsResponding ¶ func IsResponding(ip string) bool Check if host is responding Types ¶ type SSHClient ¶ type SSHClient struct { // contains filtered or unexported fields } func NewClient ¶ func NewClient(host string, user string, privKeyFile string) (*SSHClient, error) func (*SSHClient) RunAsSudo ¶ func (c *SSHClient) RunAsSudo(command string) error func (*SSHClient) RunAsUser ¶ func (c *SSHClient) RunAsUser(command string) error Source Files ¶ View all Source files sshutil.go Click to show internal directories. Click to hide internal directories.