scp /etc/hosts root@clone1:etc/hosts
点击查看代码
[root@master ~]# scp /etc/hosts root@clone1:/etc/hosts
The authenticity of host 'clone1 (192.168.10.11)' can't be established.
ECDSA key fingerprint is SHA256:M0el+1DPGcKEb0WRaWYKziDSQZA8x6B/RpvQ89ZUmHA.
ECDSA key fingerprint is MD5:9f:d8:7e:79:6e:08:18:38:6f:c2:80:e8:9c:16:4d:06.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'clone1,192.168.10.11' (ECDSA) to the list of known hosts.
root@clone1's password:
hosts 100% 225 80.5KB/s 00:00
[root@master ~]# ping clone1
PING clone1 (192.168.10.11) 56(84) bytes of data.
64 bytes from clone1 (192.168.10.11): icmp_seq=1 ttl=64 time=6.23 ms
64 bytes from clone1 (192.168.10.11): icmp_seq=2 ttl=64 time=0.717 ms
64 bytes from clone1 (192.168.10.11): icmp_seq=3 ttl=64 time=0.640 ms
64 bytes from clone1 (192.168.10.11): icmp_seq=4 ttl=64 time=0.739 ms