X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org Message-ID: <49C08F0D.5040801@broadbent.cc> Date: Wed, 18 Mar 2009 17:05:01 +1100 From: Shaun Broadbent User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b4pre) Gecko/20090317 Lightning/1.0pre Shredder/3.0b3pre MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Subject: Re: Connecting to cygwin ssh is slow Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 I came across the very same thing this morning, ironically for the same reasons. After deciding ssh was too slow and seeing some dns errors show up in the log i went to edit sshd_config to remove dns and found as you did that I couldn't. It would seem this was because sshd was running (not that, that makes sense). Trying to vi sshd_config would open the file then after a few seconds stack dump. Running as administrator I could not take ownership or change ownership or permissions of the file via any means (cacls/icacls/right click/chmod/chown), also couldn't delete the file (tried unlocker, no locks on the file). It couldn't have been a permissions issue in the true sense as both the user and Administrator had full permissions on the file. This all took place after running ssh-host-config for the first time on a new box (Windows 7 Beta, cygwin 1.7) I rebooted the box and sshd_config was gone, I wrote a new one and it has been fine since. (and yes it connects a lot faster). perhaps a reboot is required after creating a new user? > Well, I'm still stuck. I tried to change UseDNS to 'no', but editing the > sshd_config file was impossible. The file is owned by cyg_server and even > the Administrator user can't write to it. I tried to change the file > permissions and ssh crashed and the service wouldn't start. I changed the > settings back and still the service couldn't be started. I had to reinstall > the openssh package and now I am back to square 1 again. > > How can I edit the sshd_config file? I can't even log in to Windows as > cyg_server and the su command doesn't let me su to any user (I know all the > passwords). > > And what is ident, please? We don't have firewalls on our machines. Sniffing > packets like someone suggested is difficult (for me) but I guess I'll try > that too. > > I really appreciate all of your help so far. > Thanks. > Udi. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/