Skip to content

Instantly share code, notes, and snippets.

@gregjhogan
Created August 16, 2017 01:25
Show Gist options
  • Select an option

  • Save gregjhogan/f342103489a6076b7ec372b8b01f55dc to your computer and use it in GitHub Desktop.

Select an option

Save gregjhogan/f342103489a6076b7ec372b8b01f55dc to your computer and use it in GitHub Desktop.
autossh tunnel example
# ~/.ssh/config
Host {name}
Hostname {host.domain.com}
User {user-name}
Port 22
LocalForward {src-ip}:{src-port} {dst-ip}:{dst-port}
ServerAliveInterval 30
ServerAliveCountMax 4
# command
/usr/bin/autossh -M 0 -f -T -N {name}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment