Skip to content

Comment on Free book to master SSH tunneling conceptsparent

Comments

I used autossh many years ago. There was nothing wrong with it. But with systemd user service managers available everywhere I just put a normal ssh command into a service file with RestartAlways and activate linger for the user.

Thanks, there will be multiple ways to do same thing, user can choose whichever they find the easiest...

Adding an example of such systemd file - https://gist.github.com/drmalex07/c0f9304deea566842490

No need to install an extra package. No idea whether it is maintained or not, but I know systemd is, both upstream and in the distro.

Definitely not updated with the same frequency as systemd... https://salsa.debian.org/debian/autossh

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.