请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

老师,有一个问题,我 配置SSH免密登陆,配置完成之后还是需要密码

[hadoop@hadoop000 ~]$ cd .ssh
[hadoop@hadoop000 .ssh]$ ssh localhost
The authenticity of host 'localhost (::1)' can't be established.
ECDSA key fingerprint is 9c:35:79:db:e1:27:13:71:96:e2:b6:e1:3c:8e:37:4b.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
hadoop@localhost's password:
Last login: Sun Aug 20 16:56:44 2017
[hadoop@hadoop000 ~]$ ssh hadoop000
The authenticity of host 'hadoop000 (192.168.1.104)' can't be established.
ECDSA key fingerprint is 9c:35:79:db:e1:27:13:71:96:e2:b6:e1:3c:8e:37:4b.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'hadoop000,192.168.1.104' (ECDSA) to the list of known hosts.
hadoop@hadoop000's password:
Last login: Sun Aug 20 16:58:33 2017 from localhost
[hadoop@hadoop000 ~]$ ssh hadoop
ssh: Could not resolve hostname hadoop: Name or service not known
[hadoop@hadoop000 ~]$ ssh hadoop000
hadoop@hadoop000's password:
Permission denied, please try again.
hadoop@hadoop000's password:

正在回答 回答被采纳积分+3

2回答

提问者 chenjin5525 2017-08-20 17:52:39

重新配置过了,还是一样要输入密码,我发现我里面有一行是(ECDSA),老师的是(RSA)localhost后面跟了ip,我的没有跟ip

Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.


[hadoop@hadoop000 .ssh]$ ssh localhost
The authenticity of host 'localhost (::1)' can't be established.
ECDSA key fingerprint is 9c:35:79:db:e1:27:13:71:96:e2:b6:e1:3c:8e:37:4b.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
hadoop@localhost's password:
Last login: Sun Aug 20 17:39:59 2017
[hadoop@hadoop000 ~]$ exit
登出
Connection to localhost closed.
[hadoop@hadoop000 .ssh]$ ssh hadoop000
The authenticity of host 'hadoop000 (192.168.1.104)' can't be established.
ECDSA key fingerprint is 9c:35:79:db:e1:27:13:71:96:e2:b6:e1:3c:8e:37:4b.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'hadoop000,192.168.1.104' (ECDSA) to the list of known hosts.
hadoop@hadoop000's password:

0 回复 有任何疑惑可以回复我~
  • 提问者 chenjin5525 #1
    hadoop后面就有跟ip,但是括号里还是(ECDSA)
    回复 有任何疑惑可以回复我~ 2017-08-20 17:53:42
Michael_PK 2017-08-20 17:27:38

重来一次。先删除.ssh文件,再key..,再拷贝,第一次ssh是需要密码的,第二次之后就不需要了

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信