Skip to content

Instantly share code, notes, and snippets.

@shivergard
Last active January 3, 2018 22:31
Show Gist options
  • Save shivergard/db540771037cfbd2ce60e8629402d332 to your computer and use it in GitHub Desktop.
Save shivergard/db540771037cfbd2ce60e8629402d332 to your computer and use it in GitHub Desktop.
Hidden SSH
# docker version 2 example
version: "2"
services:
tor:
image: goldy/tor-hidden-service
links:
- ssh
environment:
# Set mapping ports
SSH_PORTS: "22:22"
# Keep keys in volumes
volumes:
- ./storage/tor-keys:/var/lib/tor/hidden_service/
ssh:
image: corbinu/ssh-server
ports:
- 22:22
volumes:
- ./webapp:/opt
volumes:
tor-keys:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment