Skip to content

Instantly share code, notes, and snippets.

@i40sys
Created March 18, 2022 06:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save i40sys/1b235091317eefa4250c2b27254b3e4e to your computer and use it in GitHub Desktop.
Save i40sys/1b235091317eefa4250c2b27254b3e4e to your computer and use it in GitHub Desktop.
version: '3.7'
services:
ssh-sabat-iot-gw:
image: jnovack/autossh
container_name: autossh
environment:
- SSH_REMOTE_USER=limited-user
- SSH_REMOTE_HOST=IP_SERVIDOR_DO
- SSH_REMOTE_PORT=22
- SSH_BIND_IP=0.0.0.0
- SSH_TUNNEL_PORT=55055
- SSH_TARGET_HOST=IP_LINUX
- SSH_TARGET_PORT=22
restart: unless-stopped
volumes:
- /root/.ssh/id_rsa:/id_rsa
dns:
- 8.8.8.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment