两台服务器如何传输文件
第一步:确保两台服务器能够互相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