Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

nobonobo/ssh-p2p

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

thx! https://github.com/pions/webrtc

install

$ go get -u github.com/nobonobo/ssh-p2p

usage

server side

$ 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

$ KEY=xxxxxxxx-xxxx-xxxx-xxxxxxxx
$ ssh-p2p client -key=$KEY -listen=127.0.0.1:2222

client side other terminal

$ ssh -p 2222 127.0.0.1

connect to server side sshd !!

About

ssh p2p tunneling server and client

Resources

License

Stars

Watchers

Forks

Packages

No packages published