连接由127.0.0.1关闭

时间:2014-01-20 14:08:40

标签: hadoop ssh

我在这里使用hadoop框架。我之前从这些网站安装了hadoop:http://ebiquity.umbc.edu/Tutorials/Hadoop/05%20-%20Setup%20SSHD.html。它适用于我。但现在我必须在另一台电脑上安装它。我尝试了相同的步骤,但坚持到这里

at命令:ssh localhost   它显示错误:连接由127.0.0.1

关闭

我试图用谷歌搜索多次但无法得到它。任何身体帮助:

我在Windows 7中使用cygwin工作: 错误提示在这里:

$ ssh localhost
The authenticity of host 'localhost (127.0.0.1)' can't be established.
ECDSA key fingerprint is 37:80:a5:b5:29:29:35:ee:f3:7c:67:28:d0:27:9b:d4.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
Connection closed by 127.0.0.1

使用ssh -v localhost后:

 ssh -v localhost
OpenSSH_6.4, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to localhost [127.0.0.1] port 22.
debug1: Connection established.
debug1: identity file /home/VINOTHINI/.ssh/id_rsa type 1
debug1: identity file /home/VINOTHINI/.ssh/id_rsa-cert type -1
debug1: identity file /home/VINOTHINI/.ssh/id_dsa type -1
debug1: identity file /home/VINOTHINI/.ssh/id_dsa-cert type -1
debug1: identity file /home/VINOTHINI/.ssh/id_ecdsa type -1
debug1: identity file /home/VINOTHINI/.ssh/id_ecdsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.4
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.4
debug1: match: OpenSSH_6.4 pat OpenSSH*
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5-etm@openssh.com none
debug1: kex: client->server aes128-ctr hmac-md5-etm@openssh.com none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ECDSA 37:80:a5:b5:29:29:35:ee:f3:7c:67:28:d0:27:9b:d4
debug1: Host 'localhost' is known and matches the ECDSA host key.
debug1: Found key in /home/VINOTHINI/.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/VINOTHINI/.ssh/id_rsa
Connection closed by 127.0.0.1

1 个答案:

答案 0 :(得分:1)

最后我明白了,这是因为我的Avast杀毒软件。它阻止了本地服务器的打开。我卸载了它并开始运行。愿它能帮助别人。