X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <20100121202606.GS2427@etc-services.net> References: <20100121202606 DOT GS2427 AT etc-services DOT net> Date: Thu, 21 Jan 2010 21:38:32 +0100 Message-ID: <7758a5c31001211238t4ef0ec59v2352d813ea50c5c3@mail.gmail.com> Subject: Re: Strange SSH disconnect problem From: david sastre To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 2010/1/21, Rene Caspari : > Hello, > > I have a strange problem using openssh (client) with cygwin and > Windows7. After starting Windows I start a SSH connection from within > mintty and bash to Server A, afterwards Server B, C and so on. > If the SSH to B and C is idle for some time, the connection is > interrupted and after a few seconds closed, but only for B and C, to > Server A it still works fine. > > Another strange thing, if I open SSH to Server A at first and after it > another connection to Server A, the second connection have the same > disconnect problem, the first works fine again... > > I tried it with and without TCPKeepAlive, nothing changed, there is no > desktop firewall or something and other connections (jabber, rdesktop) > are fine. > > I'm using ssh-agent with keychain but I can't imagine why this can be > problem. > > Do you know this behavior or have any idea? > > > Kind regards, > Rene > -- > "If everyone demanded peace instead of another television set, > then there'd be peace." (John Lennon) > > - http://rene.ahrcas.net - Rene Caspari - GPG-KeyID: 0xCA40A793 - > > -- > Problem reports: http://cygwin.com/problems.html > FAQ: http://cygwin.com/faq/ > Documentation: http://cygwin.com/docs.html > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > > Hi there, Have you tried to configure keep alive in /etc/ssh/ssh_client.conf or /etc/ssh_config -cant remember the right location now :) ? Just set ServerAliveInterval to N to send a packet every N seconds. I recently updated to 1.7 and the same happened to me, I use screen a lot, and sometimes, when I came back to a session, it had died. Just a guess but maybe ssh_config got updated. Don't forget to restart the service. Good luck. Dawud. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple