Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cli ¶
type Cli struct { IP string //IP地址 Username string //用户名 Password string //密码 Port int //端口号 SSH *ssh.Client //ssh客户端 SFTP *sftp.Client //sftp 客户端 LastResult string //最近一次Run的结果 Log easylogger.LoggerINF }
func NewSSHClient ¶
func NewSSHClient(ip string, username string, password string, port int, log easylogger.LoggerINF) *Cli
创建命令行对象 @param ip IP地址 @param username 用户名 @param password 密码 @param port 端口号,默认22
Click to show internal directories.
Click to hide internal directories.