簡介
scp用於在兩台centos中傳輸文件用的,lrzsz用於在xshell上傳輸本地文件到遠程centos服務器上用的
1.安裝scp
[root@localhost ~]# scp
-bash: locate: command not found
[root@localhost ~]# yum install openssh-clients
[root@localhost ~]# scp
usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
[-l limit] [-o ssh_option] [-P port] [-S program]
[[user@]host1:]file1 ... [[user@]host2:]file2
[root@localhost ~]# scp /usr/local/zookeeper-3.4.5.tar.gz root@192.168.200.70:/root/
2.安裝lrzsz
[root@localhost ~]# yum install lrzsz
3.使用lrzsz
- 從windows上上傳文件到linux
[root@jacky software]# rz
打開想要上傳的目錄,輸入命令rz,然后就會彈出
選擇自己想要上傳的文件就行了
- 從linux傳文件到windwos
# sz nginx-1.6.2.tar.gz