Documentation ¶
Index ¶
Constants ¶
View Source
const ( MsgData = '1' MsgResize = '2' )
Variables ¶
This section is empty.
Functions ¶
func NewSSHClient ¶
func NewSSHClient(conf *ClientConfig) (*ssh.Client, error)
Types ¶
type ClientConfig ¶
type ClientConfig struct { AuthMethod AuthMethod HostAddr string User string Password string KeyPath string Timeout time.Duration }
func ClientConfigPassword ¶
func ClientConfigPassword(hostAddr, user, Password string) *ClientConfig
func ClientConfigPublicKey ¶
func ClientConfigPublicKey(hostAddr, user, keyPath string) *ClientConfig
Click to show internal directories.
Click to hide internal directories.