连接被127.0.0.1关闭

qlzsbp2j  于 2021-06-03  发布在  Hadoop
关注(0)|答案(1)|浏览(659)

我在这里使用hadoop框架。我以前从以下站点安装过hadoop:http://ebiquity.umbc.edu/tutorials/hadoop/05%20-%20setup%20sshd.html. 以前对我有用。但现在我不得不把它安装在另一台电脑上。我尝试了同样的步骤,但在这里失败了
在命令ssh localhost时,它向我显示错误:connection closed by 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
xpcnnkqh

xpcnnkqh1#

最后我得到了它,这是因为我的前卫杀毒软件。它正在阻止本地服务器打开。我卸载了它并开始运行。愿它能帮助某人。

相关问题