From owner-freebsd-questions@freebsd.org Fri Jun 15 05:23:34 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 07331101A9A8 for ; Fri, 15 Jun 2018 05:23:34 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) Received: from s1-b0c6.socketlabs.email-od.com (s1-b0c6.socketlabs.email-od.com [142.0.176.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A8895790F8 for ; Fri, 15 Jun 2018 05:23:33 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) DKIM-Signature: v=1; a=rsa-sha256; d=email-od.com;i=@email-od.com;s=dkim; c=relaxed/relaxed; q=dns/txt; t=1529040214; x=1531632214; h=content-transfer-encoding:content-type:mime-version:references:in-reply-to:message-id:subject:cc:to:from:date:x-thread-info; bh=lb8y4XbBJuQcSxGgbKtwTBRykaHaZpgeEq07WGgIaGg=; b=dISIjuL9sAk9ZHb1ZPqbCEpHtu8Ou9uhQh5YaKpnfUqKTcwOmGTbnAW3rDPqTQ5+XWqoPKGzdlW4i9nVsIjqhk6nREMTHqgXREFXR0GhKZiUlgre7Y0eXZSkpTJKEgEkVSKQGVXmiyP/xQptW+8YHgNONUClKAuOZvMC0grs+Us= X-Thread-Info: NDI1MC4xMi4xOGYwMDAwMDAyODliYjguZnJlZWJzZC1xdWVzdGlvbnM9ZnJlZWJzZC5vcmc= Received: from r4.h.in.socketlabs.com (s1-b40f.socketlabs.email-od.com [142.0.180.15]) by mxsg2.email-od.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Fri, 15 Jun 2018 01:23:17 -0400 Received: from smtp.lan.sohara.org (EMTPY [89.127.62.20]) by r4.h.in.socketlabs.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Fri, 15 Jun 2018 01:23:16 -0400 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.90_1 (FreeBSD)) (envelope-from ) id 1fThCc-0005DZ-7P; Fri, 15 Jun 2018 05:23:14 +0000 Date: Fri, 15 Jun 2018 06:23:14 +0100 From: Steve O'Hara-Smith To: byrnejb@harte-lyne.ca Cc: "James B. Byrne via freebsd-questions" 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> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd11.1) X-Clacks-Overhead: "GNU Terry Pratchett" Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jun 2018 05:23:34 -0000 On Thu, 14 Jun 2018 11:27:19 -0400 "James B. Byrne via freebsd-questions" 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 PITA ISP filters. -- Steve O'Hara-Smith