Skip to content

sbaerlocher/docker.autossh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Container: Autossh

All Contributors license

Description

Highly customizable AutoSSH docker container.

Environment Variables

SSH_HOSTUSER

Default: root

Specify the usename on the remote endpoint.

SSH_TUNNEL_HOST

Required Tunnel Host

Specify the address (ip preferred) of the target.

SSH_REMOTE_HOST

Default: localhost

Specify the address (ip preferred) of the remote endpoint. (Default: localhost)

SSH_LOCAL_PORT

Required Local Port

Specify the port number on the target endpoint which will serve as the tunnel exit, or destination service. Typically this is ssh (port: 22), however, you can tunnel other services such as redis (port: 6379), elasticsearch (port: 9200) or good old http (port: 80) and https (port: 443).

SSH_REMOTE_PORT

Required Remote Port

Specify the port number on the remote endpoint which will serve as the tunnel entrance. (Default: random > 32768) If you do not want a new port every time you restart jnovack/autossh you may wish to explicitly set this.

This option reverses if you set SSH_MODE (see below). To bind a local forward tunnel to all interfaces, use an asterisk then the port desigation (e.g. *:2222).

SSH_MODE

Default: -L

Defines how the tunnel will be set up:

  • -R is default, remote forward mode
  • -L means local forward mode

DEBUG_MODE

Default: -v

causes autossh to display its version number and exit.

Contributors


Simon Baerlocher

💻 🤔 📖

License

This project is under the MIT License. See the LICENSE file for the full license text.

Copyright

(c) 2020, sbaerlocher