Skip to content

Instantly share code, notes, and snippets.

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

What would you like to do? systemd service for autossh
# systemd service for autossh
# Modify username to your username
# Connect to ssh server
# ssh -J username@alias
Description=autossh service
ExecStart=/usr/bin/autossh -M 0 -N -q -o "ServerAliveInterval 60" -o "ServerAliveCountMax 3" -p 22 -l username -R alias:22:localhost:22
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.