Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PublicKeyFile ¶
func PublicKeyFile(file string) ssh.AuthMethod
func SSHAgent ¶
func SSHAgent() ssh.AuthMethod
Types ¶
type SSHClient ¶
func (*SSHClient) OpenSession ¶
func (client *SSHClient) OpenSession(inBuffer, outBuffer, errBuffer *bytes.Buffer) (*SSHSession, error)
type SSHCommand ¶
type SSHConfig ¶
type SSHConfig struct { Config *ssh.ClientConfig Host string Port int }
func NewSSHConfigByAgent ¶
func NewSSHConfigByPassword ¶
type SSHSession ¶
type SSHSession struct { *ssh.Session InBuffer *bytes.Buffer OutBuffer *bytes.Buffer ErrBuffer *bytes.Buffer }
func (*SSHSession) RunCommand ¶
func (session *SSHSession) RunCommand(cmd *SSHCommand) error
Click to show internal directories.
Click to hide internal directories.