Documentation ¶
Index ¶
- Constants
- func AgentAuthMethod() (ssh.AuthMethod, error)
- func KeyBytesAuthMethod(buff []byte) (ssh.AuthMethod, error)
- func KeyFileAuthMethod(privateKeyfile string) (ssh.AuthMethod, error)
- func ParseKey(file string) (ssh.Signer, error)
- type Client
- func (this *Client) Copy(data io.Reader, perm os.FileMode, size int64, destFile string) error
- func (this *Client) CopyBytes(data []byte, perm os.FileMode, destFile string) error
- func (this *Client) CopyFile(srcFile, destFile string) error
- func (this *Client) RunCommandStdout(cmd string) ([]byte, error)
- type PublicKey
Constants ¶
View Source
const ( SCP_PUSH_BEGIN_FILE = "C" SCP_PUSH_END = "\x00" )
Variables ¶
This section is empty.
Functions ¶
func AgentAuthMethod ¶
func AgentAuthMethod() (ssh.AuthMethod, error)
func KeyBytesAuthMethod ¶
func KeyBytesAuthMethod(buff []byte) (ssh.AuthMethod, error)
func KeyFileAuthMethod ¶
func KeyFileAuthMethod(privateKeyfile string) (ssh.AuthMethod, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.