2 Star 7 Fork 1

卧雪Sirk / gosshtool

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
client_test.go 396 Bytes
一键复制 编辑 原始数据 按行查看 历史
scottkiss 提交于 2016-06-14 12:00 . support session idle timeout
package gosshtool
import (
"testing"
)
func Test_Cmd(t *testing.T) {
/* sshconfig := &SSHClientConfig{
User: "user",
Password: "pwd",
Host: "11.11.22.22",
}
sshclient := NewSSHClient(sshconfig)
t.Log(sshclient.Host)
stdout, stderr,session, err := sshclient.Cmd("pwd",nil,nil,0)
if err != nil {
t.Error(err)
}
t.Log(stdout)
t.Log(stderr)*/
t.Log("test")
}
Go
1
https://gitee.com/scottkiss/gosshtool.git
git@gitee.com:scottkiss/gosshtool.git
scottkiss
gosshtool
gosshtool
master

搜索帮助