Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SSHClient ¶
type SSHClient struct { User string Pass string Key string // 私钥文件路径,公钥需写入服务器的authorized_keys Host string Port int Timeout int Session *ssh.Session Client *ssh.Client }
func (*SSHClient) CreateSession ¶
CreateSession 创建ssh会话
func (*SSHClient) RunScriptFile ¶
RunScriptFile 执行脚本文件
Click to show internal directories.
Click to hide internal directories.