From nobody Tue Mar 07 01:44:54 2023 X-Original-To: freebsd-net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PVytg2gJFz3whSx for ; Tue, 7 Mar 2023 01:44:59 +0000 (UTC) (envelope-from peter@wemm.org) Received: from smtp2.wemm.org (smtp2.wemm.org [IPv6:2001:559:9c:200:4::78]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp2.wemm.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PVytf6Dt6z3vGK for ; Tue, 7 Mar 2023 01:44:58 +0000 (UTC) (envelope-from peter@wemm.org) Authentication-Results: mx1.freebsd.org; none Received: from [10.0.0.3] (canning.wemm.org [192.203.228.65]) by smtp2.wemm.org (Postfix) with ESMTP id EE59717038; Mon, 6 Mar 2023 17:44:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wemm.org; s=m20140428; t=1678153495; bh=6w5TG2SHdycq7Uj/ROFayEQwyk4pZ3NyidNUFlV4k4A=; h=Date:Subject:To:References:From:In-Reply-To; b=UPxVb+BaPIRyoAH7SPJkdTt0K32fUM4M3vXwJT+itzXUbYdG2jd8thSFO/5HuA4Ee YudPAiUtK01hViU3C/azwC+zwC+axOz36U+DgT6aE0B+051usMACiuWYWSFIzQkxGY F5XdgkSX/5vPXOJzcjDovYnktzCzEDCfgnPFr6TA= Message-ID: Date: Mon, 6 Mar 2023 17:44:54 -0800 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: sshd doesn't disconnect for 30+ minutes after the TCP connection is closed ungracefully Content-Language: en-US To: Mark Delany , freebsd-net@freebsd.org References: <08DDB90C-5D30-40A3-86C0-87021959F04D@freebsd.org> <49CE5046-7934-414C-9B62-F3712DECBA52@karels.net> <540652d7-953b-12bc-42cc-982d4dd85849@wemm.org> <0.2.0-final-1678136677.164-0xb079cd@qmda.emu.st> From: Peter Wemm In-Reply-To: <0.2.0-final-1678136677.164-0xb079cd@qmda.emu.st> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4PVytf6Dt6z3vGK X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:33651, ipnet:2001:559:9c::/48, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On 3/6/23 13:04, Mark Delany wrote: > On 06Mar23, Peter Wemm allegedly wrote: >> (~/.ssh/config with ServerAlive* probes) for different reasons.  The >> (overloaded) router would drop connections that seemed idle.  Sending >> probes helped prevent that - or at least making the router drop somebody >> else's instead. > Probably explains why I, quite likely on the same shuttle, ended up running this on the > client side of my terminal sessions: > > while : > do > ssh snake.corp.youknowhoo.com tmux emacs > echo Some dirty rat caused my connection to drop...again! > sleep 2 > done > "mosh" turned out to be a better solution in the longer run for me.  It would survive switching between shuttle and mobile data transparently. You needed a reliable jump host with udp access though. -Peter