From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15631 invoked by alias); 12 May 2011 20:56:06 -0000 Received: (qmail 15599 invoked by uid 22791); 12 May 2011 20:56:04 -0000 X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,TW_YG X-Spam-Check-By: sourceware.org Received: from smtpout.karoo.kcom.com (HELO smtpout.karoo.kcom.com) (212.50.160.34) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 12 May 2011 20:55:47 +0000 Received: from 213-152-55-9.dsl.eclipse.net.uk (HELO fleet.dcallen.co.uk) ([213.152.55.9]) by smtpout.karoo.kcom.com with ESMTP; 12 May 2011 21:55:45 +0100 Received: from [192.168.2.200] by fleet.dcallen.co.uk with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1QKcvA-00077l-VT for cygwin@cygwin.com; Thu, 12 May 2011 21:55:45 +0100 Message-ID: <4DCC4950.3090307@ls83.eclipse.co.uk> Date: Thu, 12 May 2011 20:56:00 -0000 From: Tim Allen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: ssh - Could not create directory 'c/.ssh'. References: <4DCA6895.6010702@ls83.eclipse.co.uk> <4DCAA119.9040909@cygwin.com> <4DCAF9CF.3080600@ls83.eclipse.co.uk> <4DCB3078.6070708@cygwin.com> In-Reply-To: <4DCB3078.6070708@cygwin.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 X-SW-Source: 2011-05/txt/msg00189.txt.bz2 On 12/05/11 01:57, Larry Hall (Cygwin) wrote: > On 5/11/2011 5:04 PM, Tim Allen wrote: >> Hi Larry >> >> On 11/05/11 15:45, Larry Hall (Cygwin) wrote: >>> On 5/11/2011 6:44 AM, Tim Allen wrote: >>>> Hi >>>> >>>> I have happily used Cygwin ssh from "DOS" command prompt for many >>>> years but >>>> on upgrading to V1.7 get this error message. Further info: >>>> >>>> OS: Vista >>>> >>>> /etc/passwd line: >>>> tda:unused_by_nt/2000/xp:1000:513:U-laptop1\tda,S-1-5-21-2414507100-3802266639-3593817948-1000:/home/tda:/bin/bash >>>> >>>> >>>> >>>> >>>> >>>> The interesting thing is that if I open up a second command prompt and >>>> run an >>>> arbitrary cygwin command (like "less filename"). ssh successfully finds >>>> /home/tda/.ssh (but only for so long as that second command is >>>> running). >>>> >>>> I suspect this is something to do with the changes to mounts, but so >>>> far I've >>>> been unable to find a fix. >>> >>> I think we need more information about what you're actually doing and >>> what >>> your configuration is. Please review the problem reporting guidelines >>> found >>> here: >>> >>>> Problem reports: http://cygwin.com/problems.html >>> >> >> OK. Steps to reproduce: >> >> 1. Open command prompt, type: >> c:\ ssh fleet >> Could not create directory 'c/.ssh'. >> The authenticity of host 'fleet (192.168.1.30)' can't be established. >> RSA key fingerprint is 17:33:a7:32:cd:e1:04:ed:d7:3b:dc:11:c6:da:3c:42. >> Are you sure you want to continue connecting (yes/no)? >> >> 2. Open second command prompt, type: >> c:\ less main.c >> >> 3. Leave less running, return to first prompt and repeat login attempt: >> c:\ ssh fleet >> Linux fleet 2.6.32-5-686 #1 SMP Tue Mar 8 21:36:00 UTC 2011 i686 >> (login OK) >> >> >> cygcheck.out is output of cygcheck -s -v -r with less NOT running. >> cygcheck1.out is output of cygcheck -s -v -r with less running. >> >> The difference below looks relevant: >> >> cygcheck.out: >> Output from c:\cygwin\bin\id.exe >> UID: 0(tda) GID: 0(root) >> 0(root) 545(Users) > > Indeed. Some thoughts: > > 1. Check that you're using Cygwin's ssh. Yes, double checked. > 2. Try unsetting "HOME" before running ssh. C:\>set HOME= C:\>ssh -v fleet OpenSSH_5.8p1, OpenSSL 0.9.8r 8 Feb 2011 debug1: Connecting to fleet [192.168.1.30] port 22. debug1: Connection established. debug1: permanently_set_uid: 0/0 debug1: identity file /.ssh/id_rsa type -1 ... ssh goes on to create /.ssh off of c:\cygwin and fails since no id_rsa files. Copying .ssh/ into c:\cygwin results in this working. Try: c:\>set HOME=/home/tda c:\>ssh -v fleet OpenSSH_5.8p1, OpenSSL 0.9.8r 8 Feb 2011 debug1: Connecting to fleet [192.168.1.30] port 22. debug1: Connection established. debug1: permanently_set_uid: 0/0 debug1: identity file /home/tda/.ssh/id_rsa type 1 ... (succeeds, but I need HOME to be "correct" for other apps) Try returning to Windows default: c:\>set HOME=c:\Users\tda.DCA c:\>ssh -v fleet OpenSSH_5.8p1, OpenSSL 0.9.8r 8 Feb 2011 debug1: Connecting to fleet [192.168.1.30] port 22. debug1: Connection established. debug1: permanently_set_uid: 0/0 Could not create directory 'c/.ssh'. debug1: identity file c/.ssh/id_rsa type -1 It looks as if ssh isn't going straight to /etc/passwd for home (unless another cygwin app is running in another command prompt), and then HOME is getting parsed in some strange way. > 3. Try running from a DOS prompt that is run as administrator. No change in behaviour. > 4. Try a different directory. Not sure what you mean here. Thanks for your help. Tim -- 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