Created
October 17, 2018 14:38
-
-
Save tianchaijz/569b53d5247806f5f6d587c948ddbeb6 to your computer and use it in GitHub Desktop.
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=ssh forwarding | |
After=network.target | |
[Service] | |
Type=simple | |
ExecStart=/usr/bin/ssh -N -o ServerAliveInterval=60 -o StrictHostKeyChecking=no -R 0.0.0.0:2922:127.0.0.1:22 x@y -p 22 | |
Restart=on-failure | |
[Install] | |
# After=graphical.target | |
# WantedBy=multi-user.target | |
WantedBy=graphical.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment