文件名称:sshtunnel:Go适用于Go程序的超简单SSH隧道
文件大小:6KB
文件格式:ZIP
更新时间:2024-05-30 12:35:24
ssh golang ssh-tunnel sshtunnel Go
:metro: sshtunnel Go程序的超简单SSH隧道。 安装 go get -u github.com/elliotchance/sshtunnel 或者用dep更好: dep ensure -add github.com/elliotchance/sshtunnel 例子 // Setup the tunnel, but do not yet start it yet. tunnel := sshtunnel . NewSSHTunnel ( // User and host of tunnel server, it will default to port 22 // if not specified. "ec2-user@jumpbox.us-east-1.mydomain.com" , // Pick ONE of the following authe
【文件预览】:
sshtunnel-master
----.gitignore(199B)
----README.md(2KB)
----LICENSE(1KB)
----go.mod(114B)
----ssh_agent.go(302B)
----go.sum(824B)
----endpoint.go(588B)
----private_key_file.go(298B)
----ssh_tunnel.go(3KB)