Cygwin Connection fechado por :: 1

7

Durante a instalação do Hadoop, estou tentando configurar CYGWIN e ssh . Instalado e ssh também começou com sucesso e chave de autorização de instalação, conforme instruído AQUI , mas quando Eu tento me conectar ao localhost usando ssh diz ..

$ ssh -v localhost
OpenSSH_6.2p1, OpenSSL 1.0.1e 11 Feb 2013
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to localhost [::1] port 22.
debug1: Connection established.
debug1: identity file /home/manu/.ssh/id_rsa type 1
debug1: identity file /home/manu/.ssh/id_rsa-cert type -1
debug1: identity file /home/manu/.ssh/id_dsa type -1
debug1: identity file /home/manu/.ssh/id_dsa-cert type -1
debug1: identity file /home/manu/.ssh/id_ecdsa type -1
debug1: identity file /home/manu/.ssh/id_ecdsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.2
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.2
debug1: match: OpenSSH_6.2 pat OpenSSH*
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr [email protected] none
debug1: kex: client->server aes128-ctr [email protected] none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ECDSA ec:bb:51:bb:d4:74:8f:27:49:8c:ef:59:a6:2b:ab:59
debug1: Host 'localhost' is known and matches the ECDSA host key.
debug1: Found key in /home/manu/.ssh/known_hosts:1
debug1: ssh_ecdsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/manu/.ssh/id_rsa
Connection closed by ::1

Após vários googling , eu tentei ssh -v cyg_server@localhost , mas ele solicitou senha que eu não sei ..

$ ssh -v cyg_Server@localhost
OpenSSH_6.2p1, OpenSSL 1.0.1e 11 Feb 2013
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to localhost [::1] port 22.
debug1: Connection established.
debug1: identity file /home/manu/.ssh/id_rsa type 1
debug1: identity file /home/manu/.ssh/id_rsa-cert type -1
debug1: identity file /home/manu/.ssh/id_dsa type -1
debug1: identity file /home/manu/.ssh/id_dsa-cert type -1
debug1: identity file /home/manu/.ssh/id_ecdsa type -1
debug1: identity file /home/manu/.ssh/id_ecdsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.2
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.2
debug1: match: OpenSSH_6.2 pat OpenSSH*
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr [email protected] none
debug1: kex: client->server aes128-ctr [email protected] none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ECDSA ec:bb:51:bb:d4:74:8f:27:49:8c:ef:59:a6:2b:ab:59
debug1: Host 'localhost' is known and matches the ECDSA host key.
debug1: Found key in /home/manu/.ssh/known_hosts:1
debug1: ssh_ecdsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/manu/.ssh/id_rsa
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Trying private key: /home/manu/.ssh/id_dsa
debug1: Trying private key: /home/manu/.ssh/id_ecdsa
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: password
cyg_Server@localhost's password:
debug1: Authentications that can continue: publickey,password,keyboard-interactive
Permission denied, please try again.
cyg_Server@localhost's password:
debug1: Authentications that can continue: publickey,password,keyboard-interactive
Permission denied, please try again.
cyg_Server@localhost's password:
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: No more authentication methods to try.
Permission denied (publickey,password,keyboard-interactive).

Alguém por favor pode me ajudar a estabelecer uma conexão ssh bem-sucedida e autenticada com o localhost. Ou por senha ou criando outro usuário ou ignorando a etapa de autenticação. Seria ótimo para mim! Obrigado.

    
por manurajhada 01.05.2013 / 20:44

2 respostas

4

Aqui estão algumas possibilidades para experimentar:

  1. Tente substituir 127.0.0.1 pelo localhost.
  2. Verifique se a conta do usuário cyg_server tem um diretório inicial válido (crie /home/cyg_server , se necessário) e seu shell é /bin/bash .
  3. Desinstale o Cygwin completamente, limpe seus diretórios e variáveis de ambiente, e reinstale. A senha a ser usada é aquela que você fornece ao configurar o Cygwin.
  4. Tente usar sua conta normal em vez do cyg_server sugerido pela instalação do Cygwin.

Eu não entendo porque sua postagem está marcada como "linux" quando você está usando o Cygwin - deve neste caso, seja "windows". Neste caso, dê uma olhada neste artigo: Rodando o hadoop no Windows .

    
por 04.05.2013 / 08:51
1

O usuário cyg_server não é destinado ao uso direto.

Verifique se o arquivo /etc/hosts está correto, verifique se ele resolve explicitamente o localhost para 127.0.0.1.

Se você não precisa de IPv6, desative-o.

    
por 01.05.2013 / 21:23