modulepackage
0.0.0-20241214023037-b10b77464215
Repository: https://github.com/fooofei/goremoter.git
Documentation: pkg.go.dev
# README
goremoter
Remote SSH deploy tool written by golang
Execute commands on remote virtual-machine.
Implement based on module "golang.org/x/crypto/ssh"
,
add context.context
for stop anytime.
Others / 其他同类别的各种语言的第三方件
[JavaScript] A lightweight JS library the runs an arbitrary series of shell commands on both local and remote hosts.
https://github.com/jerkeeler/rcktship
[Python] Sultan: Command and Rule over your Shell
https://github.com/aeroxis/sultan
[Golang] 这个库依旧不支持 context.Context
。封装的太多了。
https://github.com/cosiner/socker
[Golang] 把 shell 命令解析为数据结构,然后执行这个数据结构,这个比较工作量大
# Functions
Dial remote machine sshConf["host"] = "1.1.1.1" sshConf["auth"] = []ssh.AuthMethod sshConf["port"] = sshConf["user"] =.
WithPrefix return the PathPrefix.