Note
This project will be archived and no longer maintained. You can use this instead.
https://github.com/rtctunnel/rtctunnel
ssh p2p tunneling server and client
- ssh ---dial---> ssh-p2p client
- ssh-p2p client <----negotiation----> ssh-p2p server
- sshd <--dial--- ssh-p2p server
-
RTCDataChannel/WebRTC: https://github.com/pions/webrtc
-
signaling server: https://nobo-signaling.appspot.com/
src: signaling/gae
thx! https://github.com/pions/webrtc
$ go get -u github.com/nobonobo/ssh-p2p
$ KEY = $(ssh-p2p newkey)
$ echo $KEY
xxxxxxxx-xxxx-xxxx-xxxxxxxx
$ ssh-p2p server -key=$KEY -dial=127.0.0.1:22
share $KEY value to client side
$ KEY=xxxxxxxx-xxxx-xxxx-xxxxxxxx
$ ssh-p2p client -key=$KEY -listen=127.0.0.1:2222
$ ssh -p 2222 127.0.0.1
connect to server side sshd !!