Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <3BC70C1A.86B24B3@cportcorp.com> Date: Fri, 12 Oct 2001 11:28:26 -0400 From: Peter Buckley X-Mailer: Mozilla 4.7 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Scott Evans CC: cygwin AT cygwin DOT com Subject: Re: ssh vs. ~/.ssh References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Scott- What about your mount table? Could there perhaps be an entry like //d/home /d/home Where cygwin is translating the /d/home path to //d/home. The mount points aren't stored in a config file, they are in the registry. Maybe there is a directory missing- the way //d/home can show up as //d/home. Try to do a cygdrive path- set your home directory in /etc/passwd to /cygdrive/d/home and see where that takes you. HTH, -Peter Scott Evans wrote: > > Sorry, perhaps I wasn't clear. I'm trying to connect to another machine > (a linux machine, actually) -- I'm only using the ssh *client* on cygwin, > not the server. > > I know that //d is outdated. But the weird thing is that //d doesn't > appear in any configuration files anywhere! > > > //d is the now outdated way that you could have > > accessed local drives "as network shares". This > > has been removed from cygwin IIRC since 1.3.2? > > > > Did you install SSHD as a service in the past? > > I think you have to "remove the service" and then > > install the new ssh as a service for things to > > work correctly. > > > > Have you restarted the service since you changed > > /etc/passwd? > > > > Have you modified the cygdrive prefix that mount > > uses? Or did you mount your own home directory? > > > > HTH, > > Peter > > > > Scott Evans wrote: > > > > > > I just upgraded to the latest Cygwin and I'm having problems connecting > > > via ssh without typing in my password. This worked before. > > > > > > The first thing I found was that the latest ssh uses the home directory > > > from my /etc/passwd file. I don't believe the older one did that. > > > So I modified my /etc/passwd to point at my local home directory (rather > > > than the network home directory it pointed at before). Still no love. > > > But now, when I run ssh -vvv, I see that one check is looking for my > > > identity file in //d/scott, rather than /d/scott. I'll paste the > > > output below. > > > > > > Note that if I use "ssh -i /d/scott/.ssh/identity", things work fine. > > > > > > Where is this "//d" value coming from? HOME is set to /d/scott, my > > > passwd entry says /d/scott, and I have nothing anywhere that says > > > //d/scott. Any ideas? > > > > > > [scott] $ ssh -vvv scott AT dib > > > OpenSSH_2.9.9p2, SSH protocols 1.5/2.0, OpenSSL 0x0090602f > > > debug1: Reading configuration data /etc/ssh_config > > > debug1: Applying options for * > > > debug1: Seeding random number generator > > > debug1: Rhosts Authentication disabled, originating port will not be > > > trusted. > > > debug1: restore_uid > > > debug1: ssh_connect: getuid 12122 geteuid 12122 anon 1 > > > debug1: Connecting to dib [192.168.1.2] port 22. > > > debug1: temporarily_use_uid: 12122/10513 (e=12122) > > > debug1: restore_uid > > > debug1: temporarily_use_uid: 12122/10513 (e=12122) > > > debug1: restore_uid > > > debug1: Connection established. > > > debug1: identity file //d/scott/.ssh/identity type -1 > > > debug1: Remote protocol version 1.99, remote software version > > > OpenSSH_2.5.2p2 > > > debug1: match: OpenSSH_2.5.2p2 pat ^OpenSSH_2\.5\.[012] > > > debug1: Local version string SSH-1.5-OpenSSH_2.9.9p2 > > > debug1: Waiting for server public key. > > > debug1: Received server public key (768 bits) and host key (1024 bits). > > > debug3: check_host_in_hostfile: filename /d/scott/.ssh/known_hosts2 > > > debug3: check_host_in_hostfile: filename /etc/ssh_known_hosts2 > > > debug3: check_host_in_hostfile: filename /d/scott/.ssh/known_hosts2 > > > debug3: check_host_in_hostfile: filename /etc/ssh_known_hosts2 > > > debug3: check_host_in_hostfile: filename /d/scott/.ssh/known_hosts > > > debug3: check_host_in_hostfile: match line 1 > > > debug3: check_host_in_hostfile: filename /d/scott/.ssh/known_hosts > > > debug3: check_host_in_hostfile: match line 1 > > > debug1: Host 'dib' is known and matches the RSA1 host key. > > > debug1: Found key in /d/scott/.ssh/known_hosts:1 > > > debug1: Encryption type: 3des > > > debug1: Sent encrypted session key. > > > debug1: Installing crc compensation attack detector. > > > debug1: Received encrypted confirmation. > > > debug1: Doing password authentication. > > > scott AT dib's password: > > > > > > -- > > > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > > > Bug reporting: http://cygwin.com/bugs.html > > > Documentation: http://cygwin.com/docs.html > > > FAQ: http://cygwin.com/faq/ > > > > -- > > Your mouse has moved. > > Windows NT must be restarted for the change to take effect. > > Reboot now? [OK] > > > > -- > > -- Your mouse has moved. Windows NT must be restarted for the change to take effect. Reboot now? [OK] -- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/