Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SSHAgent ¶
func SSHAgent() ssh.AuthMethod
SSHAgent is a programmatic client that talks to the ssh agent.
Types ¶
type SshProgClient ¶
type SshProgClient struct { Host string Port int Config *ssh.ClientConfig }
SshProgClient is an ssh client designed to do remote commands or RPC's
func NewSshProgClient ¶
func NewSshProgClient(host string, port int, config *ssh.ClientConfig) (client *SshProgClient)
NewSshProgClient creates a client for the given host, port, and config.
func SshClient ¶
func SshClient(hostname string, port int, username string) (client *SshProgClient, err error)
SshClient generates an SSH client for talking to the provisioning server
func (*SshProgClient) RpcCall ¶
func (c *SshProgClient) RpcCall(input []byte, stdout, stderr io.Writer) (err error)
RpcCall flings bytes at a remote server over SSH to STDIN, and receives whatever that server decides to send back on STDOUT and STDERR. What you send it, and what you do with the reply is between you and the server.
Click to show internal directories.
Click to hide internal directories.