[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:
登录后可查看更多问答,登录/注册