问题:
ssh免密登录步骤
答案:
[root@hadoop hadoop]# ssh-keygen (回车三次) [root@localhost hadoop]# ssh-copy-id -i ~/.ssh/id_rsa.pub 192.168. 137 .1 01 The authenticity of host '192.168.58.129 (192.168.58.129)' can't be established. ECDSA key fingerprint is a4:c9:7f:50:7d:e2:54:87:64:ff:39:b7:e9:07:89:50. Are you sure you want to continue connecting (yes/no)? yes /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys root@192.168.58.129's password: Number of key(s) added: 1 Now try logging into the machine, with: "ssh '192.168.58.129'" and check to make sure that only the key(s) you wanted were added. [root@localhost ~]# ssh root@192.168. 137 .1 01 Last login: Thu Mar 21 09:02:54 2019 from 192.168.58.129