Software to run ssh tunnels as services on Linux/BSD ?

0 views
Skip to first unread message

Yuri

unread,
Oct 18, 2023, 9:23:28 PM10/18/23
to OpenSSH Devel List
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



_______________________________________________
openssh-unix-dev mailing list
openssh-...@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

Darren Tucker

unread,
Oct 18, 2023, 10:42:51 PM10/18/23
to Yuri, OpenSSH Devel List
On Thu, 19 Oct 2023 at 12:23, Yuri <yu...@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 connections

That 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.
Reply all
Reply to author
Forward
0 new messages