ginuerzh / gost

GO Simple Tunnel - a simple tunnel written in golang
MIT License
15.74k stars 2.46k forks source link

[Feature Request]netcat command like behavior/function, use-ssh-with-a-GOST-proxy #729

Open honwen opened 3 years ago

honwen commented 3 years ago

refer: https://superuser.com/questions/454210/how-can-i-use-ssh-with-a-socks-5-proxy

zhtianhe commented 1 year ago

请求添加 ssh ProxyCommand 功能:

in ~/.ssh/config

ProxyCommand gost -F=[Protocols]://user:password@server_ip:port -F=[[Protocols]://[user:password@][%r@]]%h:%p

ProxyCommand gost -F=[Protocols]://user:password@server_ip:port -F=%h:%p

参考:

C 语言版本的,缺乏socks5的 用户登录功能, refer: https://github.com/bryanpkc/corkscrew

ProxyCommand corkscrew proxy.example.com 8080 %h %p

ProxyCommand corkscrew proxy.work.com 80 %h %p ~/.ssh/myauth

golang 版本 refer: https://github.com/wzshiming/bridge

ProxyCommand bridge -p %h:%p -p "ssh://username@my_server?identity_file=~/.ssh/id_rsa"

ProxyCommand bridge -p %h:%p -p [Protocols]://ProxyUser:ProxyPass@ProxyServer:ProxyPort