Skip to content

arsa-dev/ssh-p2p-old

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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/keroserene/go-webrtc

install

$ go get -u github.com/arsasm/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

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages