aaroneva43 / n2n-ssh-docker

A docker image for ssh with n2n connection

Home Page:https://hub.docker.com/r/gongzhang/n2n-ssh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SSH with n2n connection

在 macOS 11 以前,可以直接使用 n2nedge 命令。不过由于其依赖的 TunTap 无法在 macOS 11 上继续使用,所以利用 Docker 临时解决一下,做了这个镜像。

Usage

# example:
docker run --rm -it --privileged \
  -e ADDRESS=10.1.1.8 \
  -e COMMUNITY=mynetwork \
  -e KEY=encryptme \
  -e SUPERNODE=a.b.c.d:xyw \
  -e PINGCHECK=10.1.1.1 \
  -v $HOME/.ssh:/root/.ssh \
  gongzhang/n2n-ssh ssh root@10.1.1.1


# equivalent to:
edge -c mynetwork -k encryptme -a 10.1.1.8 -l a.b.c.d:xyw
ping 10.1.1.1
ssh root@10.1.1.1

About

A docker image for ssh with n2n connection

https://hub.docker.com/r/gongzhang/n2n-ssh

License:MIT License


Languages

Language:Dockerfile 63.5%Language:Shell 36.5%