FreeBSD-11.1p10 and autossh

Steve O'Hara-Smith steve at sohara.org
Fri Jun 15 05:23:34 UTC 2018


On Thu, 14 Jun 2018 11:27:19 -0400
"James B. Byrne via freebsd-questions" <freebsd-questions at freebsd.org>
wrote:

> I cannot seem to configure autossh to work from anything other than
> the command line, which defeats the purpose. I would like it to
> automatically start when the system boots but I have been unsuccessful
> in all my attempts to date. I have tried adding this in rc.conf:
> 
> autossh -M0 -f -i /root/.ssh/id_ed25519 -L 143:localhost:143
> root at 192.168.216.17

	Nooooo don't do that rc.conf gets sourced all over the place.

	Put it in /etc/rc.local or in some user's crontab with @reboot
instead. I use the latter to maintain a set of tunnels for incoming
connections to my LAN <mumble>PITA ISP filters</mumble>.

-- 
Steve O'Hara-Smith <steve at sohara.org>


More information about the freebsd-questions mailing list