You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-user@hadoop.apache.org by Yepeng Sun <ye...@llamasoft.com> on 2015/07/23 23:35:46 UTC

"ssh localhost" returns "connection closed by ::1" under Cygwin installation on windows 8

Hi,

I tried to install Hadoop on windows 8 to form multi-node clusters. So first I have to install Cygwin in order to make SSH working. I installed Cygwin with Sshd service successfully. And also I generated passwordless keys. But when I run "ssh localhost", it returns "connection closed by ::1". Does anyone has the same experience? How did you solve it.

Thanks!

Yepeng


Re: "ssh localhost" returns "connection closed by ::1" under Cygwin installation on windows 8

Posted by Yepeng sun <ye...@gmail.com>.
no special reason, how to use ipv4 instead? Thanks!

For the issue I met, I will try the following link:

https://gist.githubusercontent.com/tariqmislam/2159173/raw/e2631272efe55a4ada1747dda6d3366b6eb7b577/instructions%2520and%2520how-to


On Mon, Jul 27, 2015 at 11:37 AM, Jonathan Aquilina <jaquilina@eagleeyet.net
> wrote:

>  Hi,
>
> Is there a reason why you are using ipv6?
>
> ---
> Regards,
> Jonathan Aquilina
> Founder Eagle Eye T
>
>  On 2015-07-23 23:35, Yepeng Sun wrote:
>
>  Hi,
>
>
>
> I tried to install Hadoop on windows 8 to form multi-node clusters. So
> first I have to install Cygwin in order to make SSH working. I installed
> Cygwin with Sshd service successfully. And also I generated passwordless
> keys. But when I run “ssh localhost”, it returns “connection closed by
> ::1”. Does anyone has the same experience? How did you solve it.
>
>
>
> Thanks!
>
>
>
> Yepeng
>
>
>
>

Re: "ssh localhost" returns "connection closed by ::1" under Cygwin installation on windows 8

Posted by Yepeng sun <ye...@gmail.com>.
no special reason, how to use ipv4 instead? Thanks!

For the issue I met, I will try the following link:

https://gist.githubusercontent.com/tariqmislam/2159173/raw/e2631272efe55a4ada1747dda6d3366b6eb7b577/instructions%2520and%2520how-to


On Mon, Jul 27, 2015 at 11:37 AM, Jonathan Aquilina <jaquilina@eagleeyet.net
> wrote:

>  Hi,
>
> Is there a reason why you are using ipv6?
>
> ---
> Regards,
> Jonathan Aquilina
> Founder Eagle Eye T
>
>  On 2015-07-23 23:35, Yepeng Sun wrote:
>
>  Hi,
>
>
>
> I tried to install Hadoop on windows 8 to form multi-node clusters. So
> first I have to install Cygwin in order to make SSH working. I installed
> Cygwin with Sshd service successfully. And also I generated passwordless
> keys. But when I run “ssh localhost”, it returns “connection closed by
> ::1”. Does anyone has the same experience? How did you solve it.
>
>
>
> Thanks!
>
>
>
> Yepeng
>
>
>
>

Re: "ssh localhost" returns "connection closed by ::1" under Cygwin installation on windows 8

Posted by Yepeng sun <ye...@gmail.com>.
no special reason, how to use ipv4 instead? Thanks!

For the issue I met, I will try the following link:

https://gist.githubusercontent.com/tariqmislam/2159173/raw/e2631272efe55a4ada1747dda6d3366b6eb7b577/instructions%2520and%2520how-to


On Mon, Jul 27, 2015 at 11:37 AM, Jonathan Aquilina <jaquilina@eagleeyet.net
> wrote:

>  Hi,
>
> Is there a reason why you are using ipv6?
>
> ---
> Regards,
> Jonathan Aquilina
> Founder Eagle Eye T
>
>  On 2015-07-23 23:35, Yepeng Sun wrote:
>
>  Hi,
>
>
>
> I tried to install Hadoop on windows 8 to form multi-node clusters. So
> first I have to install Cygwin in order to make SSH working. I installed
> Cygwin with Sshd service successfully. And also I generated passwordless
> keys. But when I run “ssh localhost”, it returns “connection closed by
> ::1”. Does anyone has the same experience? How did you solve it.
>
>
>
> Thanks!
>
>
>
> Yepeng
>
>
>
>

Re: "ssh localhost" returns "connection closed by ::1" under Cygwin installation on windows 8

Posted by Yepeng sun <ye...@gmail.com>.
no special reason, how to use ipv4 instead? Thanks!

For the issue I met, I will try the following link:

https://gist.githubusercontent.com/tariqmislam/2159173/raw/e2631272efe55a4ada1747dda6d3366b6eb7b577/instructions%2520and%2520how-to


On Mon, Jul 27, 2015 at 11:37 AM, Jonathan Aquilina <jaquilina@eagleeyet.net
> wrote:

>  Hi,
>
> Is there a reason why you are using ipv6?
>
> ---
> Regards,
> Jonathan Aquilina
> Founder Eagle Eye T
>
>  On 2015-07-23 23:35, Yepeng Sun wrote:
>
>  Hi,
>
>
>
> I tried to install Hadoop on windows 8 to form multi-node clusters. So
> first I have to install Cygwin in order to make SSH working. I installed
> Cygwin with Sshd service successfully. And also I generated passwordless
> keys. But when I run “ssh localhost”, it returns “connection closed by
> ::1”. Does anyone has the same experience? How did you solve it.
>
>
>
> Thanks!
>
>
>
> Yepeng
>
>
>
>

Re: "ssh localhost" returns "connection closed by ::1" under Cygwin installation on windows 8

Posted by Jonathan Aquilina <ja...@eagleeyet.net>.
 

Hi, 

Is there a reason why you are using ipv6? 

---
Regards,
Jonathan Aquilina
Founder Eagle Eye T

On 2015-07-23 23:35, Yepeng Sun wrote: 

> Hi, 
> 
> I tried to install Hadoop on windows 8 to form multi-node clusters. So first I have to install Cygwin in order to make SSH working. I installed Cygwin with Sshd service successfully. And also I generated passwordless keys. But when I run "ssh localhost", it returns "connection closed by ::1". Does anyone has the same experience? How did you solve it. 
> 
> Thanks! 
> 
> Yepeng
 

Re: "ssh localhost" returns "connection closed by ::1" under Cygwin installation on windows 8

Posted by Jonathan Aquilina <ja...@eagleeyet.net>.
 

Hi, 

Is there a reason why you are using ipv6? 

---
Regards,
Jonathan Aquilina
Founder Eagle Eye T

On 2015-07-23 23:35, Yepeng Sun wrote: 

> Hi, 
> 
> I tried to install Hadoop on windows 8 to form multi-node clusters. So first I have to install Cygwin in order to make SSH working. I installed Cygwin with Sshd service successfully. And also I generated passwordless keys. But when I run "ssh localhost", it returns "connection closed by ::1". Does anyone has the same experience? How did you solve it. 
> 
> Thanks! 
> 
> Yepeng
 

Re: "ssh localhost" returns "connection closed by ::1" under Cygwin installation on windows 8

Posted by Jonathan Aquilina <ja...@eagleeyet.net>.
 

Hi, 

Is there a reason why you are using ipv6? 

---
Regards,
Jonathan Aquilina
Founder Eagle Eye T

On 2015-07-23 23:35, Yepeng Sun wrote: 

> Hi, 
> 
> I tried to install Hadoop on windows 8 to form multi-node clusters. So first I have to install Cygwin in order to make SSH working. I installed Cygwin with Sshd service successfully. And also I generated passwordless keys. But when I run "ssh localhost", it returns "connection closed by ::1". Does anyone has the same experience? How did you solve it. 
> 
> Thanks! 
> 
> Yepeng
 

Re: "ssh localhost" returns "connection closed by ::1" under Cygwin installation on windows 8

Posted by sajid mohammed <sa...@gmail.com>.
This May help you

I experienced this same issue. The problem for me at least, was the
creation of the cyg_server user using the ssh-host-config. It was created
without a home directory and with it's shell set to /bin/false. So, I
altered the /etc/passwd file for the cyg_server user to reflect
/home/cyg_server (changed from /var/empty) and /bin/false to /bin/bash and
created the home directory for the user. Tried to reconnect using the
cyg_server user and voila.

in short: mkdir /home/cyg_server vim /etc/passwd cyg_server:...(bunch of
stuff)...:/var/empty:/bin/false to cyg_server:...(bunch of
stuff)...:/home/cyg_server:/bin/bash

Presumably cygwin has a usermod command or synonym that would do this a
little safer. But I was impatient and this is what I did. If anyone follows
this please note to be extremely careful when editing the /etc/passwd file.

On Fri, Jul 24, 2015 at 3:05 AM, Yepeng Sun <ye...@llamasoft.com>
wrote:

>  Hi,
>
>
>
> I tried to install Hadoop on windows 8 to form multi-node clusters. So
> first I have to install Cygwin in order to make SSH working. I installed
> Cygwin with Sshd service successfully. And also I generated passwordless
> keys. But when I run “ssh localhost”, it returns “connection closed by
> ::1”. Does anyone has the same experience? How did you solve it.
>
>
>
> Thanks!
>
>
>
> Yepeng
>
>
>

Re: "ssh localhost" returns "connection closed by ::1" under Cygwin installation on windows 8

Posted by Jonathan Aquilina <ja...@eagleeyet.net>.
 

Hi, 

Is there a reason why you are using ipv6? 

---
Regards,
Jonathan Aquilina
Founder Eagle Eye T

On 2015-07-23 23:35, Yepeng Sun wrote: 

> Hi, 
> 
> I tried to install Hadoop on windows 8 to form multi-node clusters. So first I have to install Cygwin in order to make SSH working. I installed Cygwin with Sshd service successfully. And also I generated passwordless keys. But when I run "ssh localhost", it returns "connection closed by ::1". Does anyone has the same experience? How did you solve it. 
> 
> Thanks! 
> 
> Yepeng
 

Re: "ssh localhost" returns "connection closed by ::1" under Cygwin installation on windows 8

Posted by sajid mohammed <sa...@gmail.com>.
This May help you

I experienced this same issue. The problem for me at least, was the
creation of the cyg_server user using the ssh-host-config. It was created
without a home directory and with it's shell set to /bin/false. So, I
altered the /etc/passwd file for the cyg_server user to reflect
/home/cyg_server (changed from /var/empty) and /bin/false to /bin/bash and
created the home directory for the user. Tried to reconnect using the
cyg_server user and voila.

in short: mkdir /home/cyg_server vim /etc/passwd cyg_server:...(bunch of
stuff)...:/var/empty:/bin/false to cyg_server:...(bunch of
stuff)...:/home/cyg_server:/bin/bash

Presumably cygwin has a usermod command or synonym that would do this a
little safer. But I was impatient and this is what I did. If anyone follows
this please note to be extremely careful when editing the /etc/passwd file.

On Fri, Jul 24, 2015 at 3:05 AM, Yepeng Sun <ye...@llamasoft.com>
wrote:

>  Hi,
>
>
>
> I tried to install Hadoop on windows 8 to form multi-node clusters. So
> first I have to install Cygwin in order to make SSH working. I installed
> Cygwin with Sshd service successfully. And also I generated passwordless
> keys. But when I run “ssh localhost”, it returns “connection closed by
> ::1”. Does anyone has the same experience? How did you solve it.
>
>
>
> Thanks!
>
>
>
> Yepeng
>
>
>

Re: "ssh localhost" returns "connection closed by ::1" under Cygwin installation on windows 8

Posted by sajid mohammed <sa...@gmail.com>.
This May help you

I experienced this same issue. The problem for me at least, was the
creation of the cyg_server user using the ssh-host-config. It was created
without a home directory and with it's shell set to /bin/false. So, I
altered the /etc/passwd file for the cyg_server user to reflect
/home/cyg_server (changed from /var/empty) and /bin/false to /bin/bash and
created the home directory for the user. Tried to reconnect using the
cyg_server user and voila.

in short: mkdir /home/cyg_server vim /etc/passwd cyg_server:...(bunch of
stuff)...:/var/empty:/bin/false to cyg_server:...(bunch of
stuff)...:/home/cyg_server:/bin/bash

Presumably cygwin has a usermod command or synonym that would do this a
little safer. But I was impatient and this is what I did. If anyone follows
this please note to be extremely careful when editing the /etc/passwd file.

On Fri, Jul 24, 2015 at 3:05 AM, Yepeng Sun <ye...@llamasoft.com>
wrote:

>  Hi,
>
>
>
> I tried to install Hadoop on windows 8 to form multi-node clusters. So
> first I have to install Cygwin in order to make SSH working. I installed
> Cygwin with Sshd service successfully. And also I generated passwordless
> keys. But when I run “ssh localhost”, it returns “connection closed by
> ::1”. Does anyone has the same experience? How did you solve it.
>
>
>
> Thanks!
>
>
>
> Yepeng
>
>
>

Re: "ssh localhost" returns "connection closed by ::1" under Cygwin installation on windows 8

Posted by sajid mohammed <sa...@gmail.com>.
This May help you

I experienced this same issue. The problem for me at least, was the
creation of the cyg_server user using the ssh-host-config. It was created
without a home directory and with it's shell set to /bin/false. So, I
altered the /etc/passwd file for the cyg_server user to reflect
/home/cyg_server (changed from /var/empty) and /bin/false to /bin/bash and
created the home directory for the user. Tried to reconnect using the
cyg_server user and voila.

in short: mkdir /home/cyg_server vim /etc/passwd cyg_server:...(bunch of
stuff)...:/var/empty:/bin/false to cyg_server:...(bunch of
stuff)...:/home/cyg_server:/bin/bash

Presumably cygwin has a usermod command or synonym that would do this a
little safer. But I was impatient and this is what I did. If anyone follows
this please note to be extremely careful when editing the /etc/passwd file.

On Fri, Jul 24, 2015 at 3:05 AM, Yepeng Sun <ye...@llamasoft.com>
wrote:

>  Hi,
>
>
>
> I tried to install Hadoop on windows 8 to form multi-node clusters. So
> first I have to install Cygwin in order to make SSH working. I installed
> Cygwin with Sshd service successfully. And also I generated passwordless
> keys. But when I run “ssh localhost”, it returns “connection closed by
> ::1”. Does anyone has the same experience? How did you solve it.
>
>
>
> Thanks!
>
>
>
> Yepeng
>
>
>