在centos6.5中安装scp和lrzsz
简介
scp用于在两台centos中传输文件用的,lrzsz用于在xshell上传输本地文件到远程centos服务器上用的
1.安装scp
[[email protected] ~]# scp
-bash: locate: command not found
[[email protected] ~]# yum install openssh-clients
[[email protected] ~]# scp
usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
[-l limit] [-o ssh_option] [-P port] [-S program]
[[[email protected]]host1:]file1 ... [[[email protected]]host2:]file2
[[email protected] ~]# scp /usr/local/zookeeper-3.4.5.tar.gz [email protected]:/root/
2.安装lrzsz
[[email protected] ~]# yum install lrzsz
3.使用lrzsz
- 从windows上上传文件到linux
[[email protected] software]# rz
打开想要上传的目录,输入命令rz,然后就会弹出
选择自己想要上传的文件就行了
- 从linux传文件到windwos
# sz nginx-1.6.2.tar.gz