SSH 代理服務器:SSH Piper
SSH Piper 是一款 根可以 根據 ssh 用戶名選擇 目標服務器 的 ssh 代理軟件
+---------+ +------------------+ +-----------------+ | | | | | | | Bob +----ssh -l bob----+ | SSH Piper +-------------> Bob' machine | | | | | | | | | +---------+ | | | | +-----------------+ +---> pipe-by-name--+ | +---------+ | | | | +-----------------+ | | | | | | | | | Alice +----ssh -l alice--+ | +-------------> Alice' machine | | | | | | | +---------+ +------------------+ +-----------------+Downstream SSH Piper Upstream</pre>
安裝方法:
go get github.com/tg123/sshpiper/sshpiperd go install github.com/tg123/sshpiper/sshpiperd運行:
$GOPATH/src/github.com/tg123/sshpiper/sshpiperd/example/showme.sh將啟動 sshpiper 服務器:
ssh 127.0.0.1 -p 2222 -l github # connect to github.com:22 ssh 127.0.0.1 -p 2222 -l linode # connect to lish-atlanta.linode.com:22連接方法:
$ ssh 0 -p 2222 -l linode.com:22 linode@0's password:$ ssh 0 -p 2222 -l github Permission denied (publickey).</pre>
配置:
$ sshpiperd -h -h=false: Print help and exit -i="/etc/ssh/ssh_host_rsa_key": Key file for SSH Piper -l="0.0.0.0": Listening Address -p=2222: Listening Port -w="/var/sshpiper": Working Dir
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!