scp小测试

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


posted @   基础狗  阅读(18)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
点击右上角即可分享
微信分享提示