socker:Go库可简化SSH在devops中的使用

时间:2021-03-06 19:29:28
【文件属性】:
文件名称:socker:Go库可简化SSH在devops中的使用
文件大小:22KB
文件格式:ZIP
更新时间:2021-03-06 19:29:28
ssh golang devops Go 袜子 Socker是的库,可简化SSH的使用,支持keepalive和多路复用。 受 for Python启发。 文献资料 可以在上找到 例子 var sshConfig = ( & Auth { User : "root" , Password : "root" }). MustSSHConfig () func TestGate ( t * testing. T ) { gate , err := Dial ( "10.0.1.1" , sshConfig ) if err != nil { t . Error ( "dial agent failed:" , err ) } defer gate . Close () testSSH ( t , gate ) } func TestSSH ( t * testing. T ) { testSSH ( t , nil )
【文件预览】:
socker-master
----.gitignore(6B)
----README.md(3KB)
----fs_sftp.go(6KB)
----filepath.go(13KB)
----fs_wd.go(2KB)
----LICENSE(1KB)
----go.mod(140B)
----ssh_session.go(2KB)
----mux_test.go(5KB)
----fs.go(1KB)
----filepath_test.go(698B)
----ssh.go(13KB)
----go.sum(3KB)
----mux_matcher.go(2KB)
----mux.go(7KB)
----auth.go(2KB)
----fs_local.go(2KB)
----ssh_session_test.go(320B)

网友评论