Created
August 5, 2019 16:25
-
-
Save ethagnawl/f96e488c2636f263711e24877a7b4d54 to your computer and use it in GitHub Desktop.
auto reverse tunneling
This file contains 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
[Unit] | |
Description=Reverse SSH Tunnel | |
After=network.target | |
[Service] | |
ExecStart=/usr/bin/ssh -N -R 27276:localhost:22 -o "ExitOnForwardFailure yes" server | |
KillMode=process | |
Restart=always | |
[Install] | |
WantedBy=multi-user.target |
This file contains 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
Host cr-remote | |
HostName localhost | |
Port 27276 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Courtesy of: https://hookrace.net/blog/linux-desktop-setup/