两台服务器如何传输文件

第一步:确保两台服务器能够互相ping通,证明网络是通的

 

第二步:

[root@centos7 local]# scp ./mysql-5.5.47-linux2.6-x86_64.tar.gz root@192.168.1.108:/usr/local/
The authenticity of host '192.168.1.108 (192.168.1.108)' can't be established.
RSA key fingerprint is c4:00:d8:dd:09:be:a8:05:58:35:87:62:7b:1d:a6:e5.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.108' (RSA) to the list of known hosts.
root@192.168.1.108's password: 
mysql-5.5.47-linux2.6-x86_64.tar.gz                                      100%  176MB  14.7MB/s   00:12

命令参考help就可以了

[root@centos7 local]# scp --help
unknown option -- -
usage: scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
           [-l limit] [-o ssh_option] [-P port] [-S program]
           [[user@]host1:]file1 ... [[user@]host2:]file2

 

转载于:https://www.cnblogs.com/hellotracy/articles/5128610.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值