title: Connection closed by ::1 error in cygwin
body: <p>I am trying to do ssh connection using cygwin. I have followed instructions given <a href="http://v-lad.org/Tutorials/Hadoop/05%20-%20Setup%20SSHD.html" rel="nofollow">here</a>. When I fire <code>ssh localhost</code> command I get <code>Connection closed by ::1</code> error. As I am newbie to unix and cygwin, I am not able to figure out what has gone wrong. Please can anyone tell me why this error comes and how to resolve it?</p>
  
  <p>My cygwin shell looks as follows :</p>
  
  <pre><code>$ ssh-keygen
  Generating public/private rsa key pair.
  Enter file in which to save the key (/home/Shekhar/.ssh/id_rsa):
  /home/Shekhar/.ssh/id_rsa already exists.
  Overwrite (y/n)? y
  Enter passphrase (empty for no passphrase):
  Enter same passphrase again:
  Your identification has been saved in /home/Shekhar/.ssh/id_rsa.
  Your public key has been saved in /home/Shekhar/.ssh/id_rsa.pub.
  The key fingerprint is:
  85:69:77:cc:fd:21:8a:ce:fe:46:41:ee:c8:e7:3d:7b Shekhar@Shekhar-PC
  The key's randomart image is:
  +--[ RSA 2048]----+
  |                 |
  |         o + .   |
  |        + = +... |
  |       . o.+. ...|
  |        S.o..   .|
  |        oo +     |
  |         o+ .    |
  |        .  o o E |
  |         .o. .+  |
  +-----------------+
  
  Shekhar@Shekhar-PC ~
  $ cd ~/.ssh/
  
  Shekhar@Shekhar-PC ~/.ssh
  $ ls -l
  total 10
  -rw-r--r-- 1 Shekhar None 1200 Jun 16 19:49 authorized_keys
  -rw------- 1 Shekhar None 1675 Jun 20 08:55 id_rsa
  -rw-r--r-- 1 Shekhar None  400 Jun 20 08:55 id_rsa.pub
  -rw-r--r-- 1 Shekhar None  171 Jun  6 23:28 known_hosts
  
  Shekhar@Shekhar-PC ~/.ssh
  $ cat id_rsa.pub &gt;&gt; authorized_keys
  
  Shekhar@Shekhar-PC ~/.ssh
  $ ssh localhost
  Connection closed by ::1
  </code></pre>