Skip to content

Instantly share code, notes, and snippets.

@kbeflo kbeflo/autossh.service forked from thomasfr/autossh.service
Last active Jun 24, 2019

Embed
What would you like to do?
serveo.net systemd service for autossh
# serveo.net systemd service for autossh
# Modify username to your username
# Connect to ssh server
# ssh -J serveo.net username@alias
[Unit]
Description=autossh service
After=network.target
[Service]
User=username
ExecStart=/usr/bin/autossh -M 0 -N -q -o "ServerAliveInterval 60" -o "ServerAliveCountMax 3" -p 22 -l username -R alias:22:localhost:22 serveo.net
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.