I have an old #mac mini in the office, and would like set up a persistent reverse tunnel so I can always SSH in from home.
Running the ssh command manually isn't a problem, but how do I turn this into a persistent service on #macos so it restarts when the connection drops for whatever reason? Anything in #homebrew ? (The Mac in question is on #mojave 14.7 IIRC, if that helps.)
Through a #wireguard tunnel ssh works in both directions.
With wireguard use PersistentKeepAlive on the "forgetting" side of NAT. Usually a home modem does NAT, so the computer that is not at home needs PersistentKeepAlive, and the home modem ideally has a fixed IP address or a DNS host name.
@KingmaYpe ah, and Wireguard on macOS can auto-start?
@floe
My last Mac was a G3 in 1998 iirc, well before wireguard, so I am not sure.
But if it's called wireguard, it should start at boot time.