This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cannot ssh: "Connection reset by peer" error when connecting


So wrote prosolutions@gmx.net on Wednesday, the 09. June 2004:
> Date: Wed, 9 Jun 2004 19:31:55 +0200
> From: prosolutions@gmx.net
> To: cygwin@cygwin.com
> Subject: Re: Cannot ssh: "Connection reset by peer" error when connecting
> User-Agent: Mutt/1.5.6+20040523i
> 
> So wrote Igor Pechtchanski on Wednesday, the 09. June 2004:
> > Date: Wed, 9 Jun 2004 13:13:37 -0400 (EDT)
> > From: Igor Pechtchanski <pechtcha@cs.nyu.edu>
> > To: Web Solutions <prosolutions@gmx.net>
> > Subject: Re: Cannot ssh: "Connection reset by peer" error when connecting
> > cc: cygwin@cygwin.com
> > 
> > On Wed, 9 Jun 2004, Web Solutions wrote:
> > 
> > > Freshly installed cygwin on a Windows 2000 (german) system with Service Pack
> > > 4 installed.  After installation I run ssh-host-config and say "yes" to
> > > privilege separation, use "tty ntsec" options, and install it as a service.
> > > I then start the service.  I login to the cygwin shell and run
> > > ssh-user-config.
> > >
> > > When running ssh-user-config I always only create an RSA2 key.  I have tried
> > > creating RSA and DSA2 keys but they make no difference and the errors are
> > > the same.
> > >
> > > For the sake of providing as much information as possible I am going to
> > > paste the output of 3 different ssh -vvv sessions below.  To quickly jump
> > > from one to the other just do a find for "SESSION ONE" "SESSION TWO" or
> > > "SESSION THREE"
> > >
> > > This first session: if I create the RSA2 key without a password I am
> > > successfully able to connect from localhost:
> > >
> > > =========SESSION ONE======================================================
> > > OpenSSH_3.8.1p1, OpenSSL 0.9.7d 17 Mar 2004
> > > [snip]
> > > Last login: Wed Jun  9 17:12:12 2004 from 127.0.0.1
> > >
> > >
> > > =========END SESSION ONE=================================================
> > >
> > > This next session is an unsuccessful connection attempt with the same user
> > > config as before (RSA2 only) except using a password.  The session fails:
> > >
> > > =============SESSION TWO==================================================
> > > OpenSSH_3.8.1p1, OpenSSL 0.9.7d 17 Mar 2004
> > > [snip]
> > > Write failed: Connection reset by peer
> > >
> > > =========END SESSION TWO==================================================
> > >
> > > This last session is trying to log in from a remote box, (RSA2 set to use
> > > password):
> > >
> > > =============SESSION THREE================================================
> > >
> > > OpenSSH_3.8.1p1 Debian 1:3.8.1p1-4, OpenSSL 0.9.7d 17 Mar 2004
> > > [snip]
> > > Read from socket failed: Connection reset by peer
> > >
> > > ============END SESSION THREE=============================================
> > >
> > > finally, here is the sshd_config:
> > > [snip]
> > 
> > Does <http://cygwin.com/ml/cygwin/2003-09/msg00881.html> help?
> > 	Igor
> > -- 
> 
> 
> 
> Interestingly I saw that post just before making my posting here.  That
> was the last attempt I made to fix it.  I tried to chown SYSTEM.SYSTEM
> .ssh/* which had no effect whatsoever on the ownership.  This user also has full administrative rights.  
> 
> Here is the directory listing for /home/user/.ssh:
> 
> total 4
> drwxr-xr-x    2 user   Kein            0 Jun  9 17:11 .
> drwxr-xr-x    3 user   Kein            0 Jun  9 16:09 ..
> -rw-r--r--    1 user   Kein          225 Jun  9 17:11 authorized_keys
> -rw-r--r--    1 user   Kein          887 Jun  9 17:11 id_rsa
> -rw-r--r--    1 user   Kein          225 Jun  9 17:11 id_rsa.pub
> -rw-r--r--    1 user   Kein          447 Jun  9 17:12 known_hosts
> 
> 
> However, given that they are all mode 644 I would think that would be
> enough.  I've also seen this thread
> http://archive.erdelynet.com/ssh-l/2001-06/msg00057.php which indicates
> 644 should be enough (what I would also tend to think).
> 
> 



I just thought that I should also mention this is on a FAT filesystem, not
NTFS.  Don't know if/what difference that might make here.

--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]