安装scp:
[root@centos3 ~]# yum install openssl-clients
scp使用:
1.将本地的lms.tar.gz复制到远端192.168.102.90的/usr/local/test目录下
# scp lms.tar.gz root@192.168.102.90:/usr/local/test
2.将本地的lms目录下的内容复制到远端192.168.102.90的/usr/local/test1目录下
# scp -r /lms root@192.168.102.90:/usr/local/test1
3.将远端/usr/local/test.tar.gz复制到本地的/usr/local/test2目录下
# scp root@192.168.102.90:/usr/local/test.tar.gz /usr/local/test2
4.将远端/usr/local/test1目录下的内容复制到本地的/usr/local/test3目录下
# scp -r root@192.168.102.90:/usr/local/test1 /usr/local/test3
转载于:https://blog.51cto.com/vqiao/1572816