On Tue, 25 Aug 2020 21:22:43 -0400
Alex Regan wrote:
Hi, I have a fedora32 system behind a firewall without any access
from
the outside. I'd like to build a reverse ssh tunnel so I can get to it
from my remote location while working remotely.
I do this, but I don't run it as a service, I just have a script
that checks to see if it is already running, and if it isn't
starts it in the background. This gives me a chance to type
in the long passphrase for the agent keys before it is backgrounded.
I run this script when I login.
The script also loops if the ssh process ever dies, waits 30 seconds,
and starts it again. (That way I can do things like reboot my home
system and still get reconnected automagically).