Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jun 2018 06:23:14 +0100
From:      Steve O'Hara-Smith <steve@sohara.org>
To:        byrnejb@harte-lyne.ca
Cc:        "James B. Byrne via freebsd-questions" <freebsd-questions@freebsd.org>
Subject:   Re: FreeBSD-11.1p10 and autossh
Message-ID:  <20180615062314.7d7c21273719a4cf0e899915@sohara.org>
In-Reply-To: <5387e3bd234fcae7274d3202fd89d71d.squirrel@webmail.harte-lyne.ca>
References:  <5387e3bd234fcae7274d3202fd89d71d.squirrel@webmail.harte-lyne.ca>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Thu, 14 Jun 2018 11:27:19 -0400
"James B. Byrne via freebsd-questions" <freebsd-questions@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@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@sohara.org>



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20180615062314.7d7c21273719a4cf0e899915>