From owner-freebsd-questions@freebsd.org Sun Jun 2 22:18:57 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 71EF215C1E6B for ; Sun, 2 Jun 2019 22:18:57 +0000 (UTC) (envelope-from doug@fledge.watson.org) Received: from cyrus.watson.org (cyrus.watson.org [204.107.128.30]) by mx1.freebsd.org (Postfix) with ESMTP id 2F33A83032 for ; Sun, 2 Jun 2019 22:18:56 +0000 (UTC) (envelope-from doug@fledge.watson.org) Received: from fledge.watson.org (fledge.watson.org [198.74.231.63]) by cyrus.watson.org (Postfix) with ESMTPS id BA69419334E; Sun, 2 Jun 2019 22:18:48 +0000 (UTC) Received: from fledge.watson.org (doug@localhost.watson.org [127.0.0.1]) by fledge.watson.org (8.15.2/8.15.2) with ESMTP id x52MImBr061765; Sun, 2 Jun 2019 18:18:48 -0400 (EDT) (envelope-from doug@fledge.watson.org) Received: from localhost (doug@localhost) by fledge.watson.org (8.15.2/8.15.2/Submit) with ESMTP id x52MImkk061762; Sun, 2 Jun 2019 18:18:48 -0400 (EDT) (envelope-from doug@fledge.watson.org) Date: Sun, 2 Jun 2019 18:18:48 -0400 (EDT) From: doug Reply-To: doug@safeport.com To: John Johnstone cc: freebsd-questions@freebsd.org Subject: Re: ssh timeout question In-Reply-To: Message-ID: References: <8daaed74-b18c-7b3d-12ff-baa76f894bfc@tridentusa.com> <3C8F1DFF-55B0-4A05-9B7B-B05B64676999@kreme.com> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Rspamd-Queue-Id: 2F33A83032 X-Spamd-Bar: ++++++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [6.54 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[doug@safeport.com]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_SPAM_SHORT(1.00)[1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[watson.org]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(1.00)[1.000,0]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[fledge2.watson.org,cyrus.watson.org]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[30.128.107.204.list.dnswl.org : 127.0.10.0]; NEURAL_SPAM_LONG(1.00)[1.000,0]; R_SPF_NA(0.00)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:11288, ipnet:204.107.128.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(2.55)[ip: (6.78), ipnet: 204.107.128.0/24(3.39), asn: 11288(2.63), country: US(-0.06)] X-Spam: Yes 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: Sun, 02 Jun 2019 22:18:57 -0000 On Fri, 31 May 2019, John Johnstone wrote: > 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. It's hard to talk about this without naming names. With Verizon and a router model. For me no connection is timed out using model Fios-G1100 unless the connection is running pine. In this case the connect is timed out, usually within 3 hours. I have not tried all the remedies suggested here as the work demand >> irritant level. I will eventually do this and report back.