标签:nec inf ref pass cat dde col errors which
操作步骤:########################################################
2.1 分发密钥:
#ssh-copy-id ip 或 主机名
[root@linux-node1 .ssh]# ssh-copy-id root@192.168.10.20
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa.pub"
The authenticity of host ‘192.168.10.20 (192.168.10.20)‘ can‘t be established.
ECDSA key fingerprint is SHA256:3FvLpgF2SZ8tnDaLxx/6MOExLHQexXawRH0dAu/wgIk.
ECDSA key fingerprint is MD5:f2:3d:11:88:87:92:47:05:e2:93:ac:0a:a9:44:61:d9.
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.10.20‘s password:
Number of key(s) added: 1
Now try logging into the machine, with: "ssh ‘root@192.168.10.20‘"
and check to make sure that only the key(s) you wanted were added.
#################################################################
验证:
[root@linux-node1 ~]# ssh 192.168.10.20
Last failed login: Wed Jun 27 05:50:17 EDT 2018 from 192.168.10.10 on ssh:notty
There was 1 failed login attempt since the last successful login.
Last login: Wed Jun 27 04:19:23 2018 from 192.168.10.1
[root@linux-node2 ~]# ifocn
-bash: ifocn: 未找到命令
[root@linux-node2 ~]# ifconfig
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.10.20 netmask 255.255.255.0 broadcast 192.168.10.255
inet6 fe80::e690:3c3c:62ba:c9e2 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:b5:43:96 txqueuelen 1000 (Ethernet)
RX packets 530373 bytes 297203349 (283.4 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 730583 bytes 56873359 (54.2 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
##################################################################
标签:nec inf ref pass cat dde col errors which
原文地址:http://blog.51cto.com/13550113/2318280