ssh-p2p

command module
v0.0.0-...-3715e08 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2022 License: MIT Imports: 19 Imported by: 0

README

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 !!

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
server Module
ssh-p2p module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL