Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nobonobo/ssh-p2p
ssh p2p tunneling server and client
https://github.com/nobonobo/ssh-p2p
Last synced: 5 days ago
JSON representation
ssh p2p tunneling server and client
- Host: GitHub
- URL: https://github.com/nobonobo/ssh-p2p
- Owner: nobonobo
- License: mit
- Archived: true
- Created: 2016-04-21T09:48:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-04-02T22:57:13.000Z (7 months ago)
- Last Synced: 2024-08-01T19:47:10.737Z (3 months ago)
- Language: Go
- Size: 317 KB
- Stars: 239
- Watchers: 8
- Forks: 40
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-pion - nobonobo/ssh-p2p - SSH p2p tunneling server and client (DataChannel)
README
> [!NOTE]
> This project will be archived and no longer maintained. You can use this instead.
>
> https://github.com/rtctunnel/rtctunnel
# ssh-p2p
ssh p2p tunneling server and client# connection sequence
1. ssh ---dial---> ssh-p2p client
2. ssh-p2p client <----negotiation----> ssh-p2p server
3. sshd <--dial--- ssh-p2p server# backend protocol
- RTCDataChannel/WebRTC: https://github.com/pions/webrtc
- signaling server: https://nobo-signaling.appspot.com/src: [signaling/gae](https://github.com/nobonobo/ssh-p2p/signaling/gae)
thx! https://github.com/pions/webrtc
# install
```sh
$ go get -u github.com/nobonobo/ssh-p2p
```# usage
## server side
```sh
$ 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
## client side
```sh
$ KEY=xxxxxxxx-xxxx-xxxx-xxxxxxxx
$ ssh-p2p client -key=$KEY -listen=127.0.0.1:2222
```## client side other terminal
```sh
$ ssh -p 2222 127.0.0.1
```**connect to server side sshd !!**