项目作者: jimlinntu

项目描述 :
A simple Docker container providing a SSH service and a reverse tunnel port.
高级语言: Dockerfile
项目地址: git://github.com/jimlinntu/ssh-tunneler.git
创建时间: 2020-09-01T12:50:14Z
项目社区:https://github.com/jimlinntu/ssh-tunneler

开源协议:

下载


Ssh-tunneler

Environment

  • Ubuntu 18.04

Setup

  • docker build -t jimlin7777/ssh-tunneler --no-cache .
  • Put your public key (named it as id_rsa.pub) and put it into this folder.
  • Modify parenthesis enclosing string to meet your need and then put create_tunnel.service into /etc/systemd/system/.
  • Modify create_tunnel.sh to meet your need.

Server

  • docker-compose up -d

Client

  • bash create_tunnel.sh or systemctl start create_tunnel (systemctl enable create_tunnel if you want it to start after booting)

References