From owner-freebsd-questions@freebsd.org Fri May 31 13:03:49 2019 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 374DC15BD16D for ; Fri, 31 May 2019 13:03:49 +0000 (UTC) (envelope-from jjohnstone.nospamfreebsd@tridentusa.com) Received: from mail.tridentusa.com (mail.tridentusa.com [96.225.19.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C16946C632 for ; Fri, 31 May 2019 13:03:47 +0000 (UTC) (envelope-from jjohnstone.nospamfreebsd@tridentusa.com) Received: (qmail 94597 invoked from network); 31 May 2019 13:03:40 -0000 Received: from mail.tridentusa.com (172.16.0.32) de/crypted with TLSv1: DHE-RSA-AES256-SHA [256/256] DN=none by smtprelay.tridentusa.com with ESMTPS; 31 May 2019 13:03:40 -0000 Received: (qmail 56208 invoked from network); 31 May 2019 09:03:40 -0400 Received: from pool-108-53-192-121.nwrknj.fios.verizon.net (HELO ?192.168.1.156?) (jjohnstone@tridentusa.com@108.53.192.121) by mail.tridentusa.com with SMTP; 31 May 2019 09:03:40 -0400 From: John Johnstone Subject: Re: ssh timeout question To: freebsd-questions@freebsd.org References: <8daaed74-b18c-7b3d-12ff-baa76f894bfc@tridentusa.com> <3C8F1DFF-55B0-4A05-9B7B-B05B64676999@kreme.com> Message-ID: Date: Fri, 31 May 2019 09:03:40 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <3C8F1DFF-55B0-4A05-9B7B-B05B64676999@kreme.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: C16946C632 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of jjohnstone.nospamfreebsd@tridentusa.com designates 96.225.19.3 as permitted sender) smtp.mailfrom=jjohnstone.nospamfreebsd@tridentusa.com X-Spamd-Result: default: False [-0.62 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.41)[-0.407,0]; RCVD_COUNT_FIVE(0.00)[5]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[tridentusa.com]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.78)[-0.780,0]; RCVD_TLS_LAST(0.00)[]; NEURAL_SPAM_SHORT(0.63)[0.631,0]; MX_GOOD(-0.01)[mail1.tridentusa.com,mail.tridentusa.com]; IP_SCORE(0.24)[asn: 701(1.28), country: US(-0.06)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:701, ipnet:96.225.0.0/17, country:US]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 May 2019 13:03:49 -0000 On 5/28/19 3:00 PM, @lbutlr wrote: > On 28 May 2019, at 05:37, John Johnstone wrote: >> I also now have a Verizon G1100. I still have my .ssh/config file with ServerAliveInterval set to 30 and I'm able to maintain ssh sessions for many hours as long as the laptop is not set to sleep. > > It's not a bad idea to at least test this, but I do not have ~/.ssh/config at all and my Mac maintains a ssh connection for weeks at a time. Basically, unless I reboot my FreeBSD server or reboot my Mac, the connection stays up. I put the ServerAliveInterval in place a long time ago and didn't test the need for it after that. I removed it and yes, connections are staying up without it. Packet monitoring shows TCP Keep-Alives are being sent every 2 hours. - John J.