Created
August 16, 2017 01:25
-
-
Save gregjhogan/f342103489a6076b7ec372b8b01f55dc to your computer and use it in GitHub Desktop.
autossh tunnel example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ~/.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