Giter Site home page Giter Site logo

hemedga / docker-https-ssh-tunnel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jvranish/docker-https-ssh-tunnel

0.0 0.0 0.0 7 KB

A docker container for setting up an https endpoint that reverse ssh port forward's to a local port on your system

License: The Unlicense

Dockerfile 66.42% HTML 11.30% Shell 22.28%

docker-https-ssh-tunnel's Introduction

To run this example you will need:

A server running docker with a DNS name pointing to it. (If you don't already have one setup, using docker-machine) can make it easier to setup and deploy to your server. Your server will need ports 80, 443, and 2222 open to the public.

The following instructions assume you're using docker-machine. This will definitely work without it, but you'll have to do a bit more manual copying of files. And you'll probably want to clone the repo on your server rather than locally.

  • Clone this repo
  • Replace identity.pub with your own public SSH key.
  • Edit the environment file and replace replace.this.example.com with the DNS name of your server and [email protected] with your email.
  • Letsencrypt has a pretty strict rate limit of 5 per week, so if you find yourself needing to debug things, uncomment the line LETSENCRYPT_TEST=true in the docker-compose.yml file. The test certs will by considered unsecure by browsers but it should let you test the basic functionality without hitting the rate limit.
  • Then to launch the docker containers:
  eval $(docker-machine env your-server-name)
  source environment
  docker-compose up
  • Now on your local machine you can test the tunnel with something like:
  python -m SimpleHTTPServer 3000 .
  ./start_tunnel.sh 3000 whatever.your.domain.is
  • Open browser to whatever.your.domain.is and you should see an "It works!"

If you need to make tunnel configuration changes (such as changing your public key), you'll likely need to remove the existing ssh-reverse-tunnel image to force it to rebuild.

docker-https-ssh-tunnel's People

Contributors

jvranish avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.