DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 52TJGM2k935381 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 52TJGM2k935381 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=X2nhRoCb X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B52FA3856260 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1743275781; bh=Nj8FHdP/d+62JANiVwOUOT4AhZIh3U0VO7/1O5WKHxQ=; h=References:In-Reply-To:Date:Subject:To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=X2nhRoCblVcSiqrOuux0wIkBVieIeUEtDcfnwWcMT/tzAUJYWIKyxmDRFWMjuugLP DZhLrL4WfXhJ8DRqy/V1+QyrY/FoME8/pUwXyV2AJp4k9Qg0KDNdPrC86Pv0E4G5TT MjIc3KoKMWZ6QrBbiIpU4VAm4ACGiKh9cy9tOaB0= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0AB5D3858D1E ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0AB5D3858D1E ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1743275756; cv=none; b=PxO6KpY5o+b1zbZZkVt3CPgdknN1vSFUOYmC1CDW7sTS/vEaFfLVf1SJn4db8kt+3Cs1tzH+AbM06ADioe7zOXqY9yVa+O6795lDrG/69fHz6XSVbc91uc32lCH6XLnVt07UsQYUj4HWqdeLJ1qZHNpRPoHlUvfSnc5A3S83oDo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1743275756; c=relaxed/simple; bh=nWMABJdNMzaN60RoTGQmB7HmqLbpa3R+/6ADkdkFi3k=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=w8LsZfeSwzEdkTqK/G+gFqJWKdVFxsD9acQJg8RFd8ajSatxnOfxj2wnh58n3U1tK+tfb3HFeoyEP4K6oHZQUOG+eAa+WqQU5N094Id/bWnWNJ5SWLzcMgzbLt0wf6is5jUlpkgOyzZw8X2y5GUSeu+b3Efje77QvKdMAnT/uB8= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0AB5D3858D1E X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743275754; x=1743880554; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=n5LncnRlzHJ0qRHuDH5huFFPc706RaLZEePZydHGcJc=; b=tdYQwKhJyP0J6kSE9/hbHDRE5PujUHZHOt1DSKbnn6eDVuDSQZQJ8unv8EGiuQIYHA 3A7TOpbSjQdLUYL1fpcYzehhi9MA96v/8d656T3sbpn8HylvD5z0/0DuEP8/6gMY6Bdy 28t9N7xlJ8ZHtLQ4f1x4/V7fubWTA3UfFkB9EZYY6YSzTiqvr3L7WgAC+TuF7Q1XHiiQ N6mt9VTXxBfN1BG9LFtlfYeEEz0bRmfs7ZeaJodiELRtPG4j/aNMC3cM12g40RePDgOc H06bt0oFP4nebkKb8HOKDG9L0fFwEIVzqfkfbgzL5ggKtFedXkDPW1MmHj3VZ8Y+9SNR yWiw== X-Gm-Message-State: AOJu0YxS3/WNUFl3UIHHZjNJWKPbxkEqE2kMCdo17g0gQz3MwPNDl07q /ewacfBctPw1oCTDa4HevWz2qgG+PBQuqC5VK1r+k/tws+G8X9+7CX7Ijz4dyF0M0YJeaGtfHPh vn46FNIljIGIlHf8GSiUFFSZ/eSyUpRd2 X-Gm-Gg: ASbGncsZp6qfU4i6PKWwBkMjg8viYzzf4xuKoELYDeC0P1NGtYKQqwsEeR4xZBpNnNm MuuwZSgXl2sRoHeft4XYpHXGXQOsBiziCWbnhr98zVom9SThA9tDW/Qj6ZD4vL30sWVfmeS36MM 5fWFXrVKGA1/4BOPgGKWpx3uQ= X-Google-Smtp-Source: AGHT+IHhew0UI8ZQtNs8Z7CSFL6eHCaXdpHj+eB1yAscUv/WTjtU0Yc4MtaADoXXrzEsdmsQl5tL2ZWmkwKIBEOYlek= X-Received: by 2002:a05:651c:1584:b0:30b:b956:53d4 with SMTP id 38308e7fff4ca-30de022c55dmr11276041fa.5.1743275753900; Sat, 29 Mar 2025 12:15:53 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 29 Mar 2025 15:15:40 -0400 X-Gm-Features: AQ5f1JpdEjy4mboCZ_4a3mK8HyngqLYDywv8HtIifeoiUAWIbSkUTuk2uRrGq_0 Message-ID: Subject: Re: sshd times out and disconnects client To: "C. Linus Hicks" Cc: cygwin AT cygwin DOT com X-Content-Filtered-By: Mailman/MimeDel 2.1.30 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Soren via Cygwin Reply-To: Soren Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 52TJGM2k935381 On Fri, Mar 28, 2025 at 2:42 PM C. Linus Hicks wrote: > On the server side, you can update the sshd_config file and set the value > of the ClientAliveInterval to a non-zero value, like 60 seconds. Or you can > set the ServerAliveInterval option to a similar value in your client > options, either on the command line or in your local config file. > > On Fri, Mar 28, 2025 at 4:28 PM Soren wrote: > Hello Linus H. and others, > Ok! The quick reply was especially helpful today. Thanks very much, > Linus, for the expert advice! I edited /etc/sshd_config according to your > information and stopped and restarted sshd. Then logged in from a Linux > box and all seems well. > Cygwin still rocks. > Soren Andersen > I am guilty of premature exaltation. When I wrote the above, I had not allowed a couple hours go by to see if the ssh sessions would disconnect. I was just happy that making the recommended change to sshd_config did not "break" anything, and took it on faith that I'd solved the problem. It didn't. I'll add a bit more information in hopes that we can still find a fix. This Windows 10 laptop goes into "sleep mode" after a couple hours of no keyboard or mouse input, and when it does so sshd disconnects any sessions. I didn't mention that in my first message. Sorry. The way I would *like* Windows to work would be to stay in full power mode while a service like sshd is active. I don't know my laptop well enough to know if there is any setting I can toggle to avoid this semi-shutdown, or at least extend the time before it does this. Perhaps someone on the list knows? Also, I remember hearing of a "mouse jiggler" utility that would simulate use of the mouse to keep Windows from going to sleep, but that was years ago. If such a thing still exists, maybe a list reader knows about it. I really appreciate the help. Thanks, Soren A -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple