From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 97617 invoked by alias); 6 Aug 2015 17:19:44 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 97608 invoked by uid 89); 6 Aug 2015 17:19:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.0 required=5.0 tests=BAYES_50,FREEMAIL_FROM,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mout0.freenet.de Received: from mout0.freenet.de (HELO mout0.freenet.de) (195.4.92.90) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 06 Aug 2015 17:19:42 +0000 Received: from [195.4.92.140] (helo=mjail0.freenet.de) by mout0.freenet.de with esmtpa (ID mandango@freenet.de) (port 25) (Exim 4.85 #1) id 1ZNOpO-0000j9-Lo for cygwin@cygwin.com; Thu, 06 Aug 2015 19:19:38 +0200 Received: from localhost ([::1]:46810 helo=mjail0.freenet.de) by mjail0.freenet.de with esmtpa (ID mandango@freenet.de) (Exim 4.85 #1) id 1ZNOpO-0001bj-Hz for cygwin@cygwin.com; Thu, 06 Aug 2015 19:19:38 +0200 Received: from mx11.freenet.de ([195.4.92.21]:42767) by mjail0.freenet.de with esmtpa (ID mandango@freenet.de) (Exim 4.85 #1) id 1ZNOmp-0003yd-9o for cygwin@cygwin.com; Thu, 06 Aug 2015 19:16:59 +0200 Received: from p5790739e.dip0.t-ipconnect.de ([87.144.115.158]:6204 helo=[192.168.129.69]) by mx11.freenet.de with esmtpsa (ID mandango@freenet.de) (TLSv1.2:DHE-RSA-AES128-SHA:128) (port 465) (Exim 4.85 #1) id 1ZNOmp-00087L-4l for cygwin@cygwin.com; Thu, 06 Aug 2015 19:16:59 +0200 Message-ID: <55C39689.5080202@freenet.de> Date: Thu, 06 Aug 2015 17:19:00 -0000 From: Peter User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: cygwin ssh login long login delay while showing "last login" References: <1438879959.34691.ezmlm@cygwin.com> In-Reply-To: <1438879959.34691.ezmlm@cygwin.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Originated-At: 87.144.115.158!6204 X-SW-Source: 2015-08/txt/msg00101.txt.bz2 On 06.08.2015 18:52, cygwin-digest-help@cygwin.com wrote: > > Peter writes: >> >I have installed the cygwin ssh daemon on my w7 box with cygwin64. >> > >> >When I try to login I always get a long delay or timeouts on the client >> >side. >> > >> >I get quick response for the password and then a showing "Last login: ..." >> > >> >At this point the connection hangs for about 30s to 1min before I >> >finally get a login . >> > >> >This is what it shows when I try to do an ssh to my local host from my >> >local host: >> > >> >$ ssh testuser myw7host >> >testuser myw7host's password: >> >Last login: Thu Aug 6 12:46:23 2015 from 128.139.80.101 >> > >> >The password request and the Last login is almost instant but then it >> >hangs for about a minute before I get the login . >> > >> >I also tried to ssh testuser localhost or testuser > 128.139.80.101 but >> >the effect is the same. >> > >> >How can I troubleshoot the issue? > It's unclear to me whether you're saying the delay is in completing the > "last login" line (and showing the IP address) or the delay is after the IP > address is shown and before you get a shell prompt. If it's the first of > these, it sounds like there's a DNS timeout trying to find the machine name > for that address and failing. If it's the second of these, I would suspect > something in one of the profile or login files for the shell involved. > > ..mark > Sorry for the confusion. As I said I get quick response for the password and then that line showing the "Last Login: ..." stuff. At this point I suppose that connection to the sshd has been established. So I go with your suspicion about the profile or login files of the shell. The thing that puzzles me ist that I do it from localhost to localhost and opening a cygwin terminal with bash on localhost takes less than 2 seconds. From my understanding the login/profile stuff should be almost the same. One thing that comes to my mind is that there may be something with my domain credentials. The password I need to supply is my windows domain login password, so I think I am logged in as the domain user. But if there is something wrong with the credentials it could be that during the login process there are attempts to access network shares which possibly fail and give timeouts. Thanks for pointing me in that direction so I am going to put some set -x into the login scripts to see if I can find the reason. Peter -- 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