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: <3BC733A9.A716AD26@cportcorp.com> Date: Fri, 12 Oct 2001 14:17:13 -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 Along the same lines of the //d/home idea, have you tried setting your home directory to a dir on the linux box? Maybe cygwin ssh is converting /d/home to /cygdrive/d/home and the linux box doesn't grok /cygdrive, since it isn't *really* a directory, and the linux box can't look there for your identity files? HTH, Peter Scott Evans wrote: > > > What about your mount table? Could there > > perhaps be an entry like > > > > //d/home /d/home > > Good idea, but no... the only mount points are /c and /d > (mapped to c:/ and d:/). > > I searched through the whole registry for "//d" but there's > nothing there. > > > 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. > > That's an interesting idea too... and I have actually tried that. > But when I change /etc/password to /cygdrive/d/scott, the relevant > line in the "ssh -vvv" output is still: > debug1: identity file //d/scott/.ssh/identity type -1 > > Very strange! I can't figure out where ssh is getting this value. > > (Thanks for your help though, Peter, much appreciated.) > > scott > > > 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] > > > > -- > > -- 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/