Hi, I need to run ssh client(s) as services on BSD. The service should: * start the ssh tunnel under a proper user when the system starts * restart it when the tunnel breaks * use proper ssh keys and configurations for connections Does such software exist? Thanks, Yuri
Darren Tucker
2023-Oct-19 02:39 UTC
Software to run ssh tunnels as services on Linux/BSD ?
On Thu, 19 Oct 2023 at 12:23, Yuri <yuri at rawbw.com> wrote:> I need to run ssh client(s) as services on BSD. > > The service should: > * start the ssh tunnel under a proper user when the system starts > * restart it when the tunnel breaks > * use proper ssh keys and configurations for connectionsThat sounds (at least partly) like AutoSSH. In the past I've also used inetd to invoke "ssh -W" or the equivalent thereof to bring up tunnels on demand. -- Darren Tucker (dtucker at dtucker.net) GPG key 11EAA6FA / A86E 3E07 5B19 5880 E860 37F4 9357 ECEF 11EA A6FA Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.