在Linux系统下,可以通过rz命令将本地的文件上传至Linux操作系统上,通过sz命令将服务器桑的文件下载到本地磁盘的操作,所有的文件传输走的都是SSH协议。
一般的Linux最下化安装都没有安装此工具,我们安装此工具可以直接使用Yum源的方式进行安装。
#yum -y install lrzsz*
安装日志
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# yum -y install lrzsz*
Loaded plugins: fastestmirror
Determining fastest mirrors
* base: centos-distro.cavecreek.net
* extras: mirror.hmc.edu
* updates: mirrors.xmission.com
base
extras
extras/primary_db
updates
updates/primary_db
Setting up Install Process
No package rz available.
Error: Nothing to do
[root@vps02 themes]# yum -y install lrzsz*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos-distro.cavecreek.net
* extras: mirror.hmc.edu
* updates: mirrors.xmission.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package lrzsz.x86_64 0:0.12.20-27.1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch
================================================================================
Installing:
lrzsz x86_64
Transaction Summary
================================================================================
Install 1 Package(s)
Total download size: 71 k
Installed size: 159 k
Downloading Packages:
lrzsz-0.12.20-27.1.el6.x86_64.rpm
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : lrzsz-0.12.20-27.1.el6.x86_64
Verifying : lrzsz-0.12.20-27.1.el6.x86_64
Installed:
lrzsz.x86_64 0:0.12.20-27.1.el6
Complete!
|
安装完毕,即可使用。
使用方法:
打开SecureCRT软件 -> Options -> session options -> X/Y/Zmodem 下可以设置上传和下载的目录; 然后在用SecureCRT登陆linux终端的时候:
# sz filename (发送文件到客户端,zmodem接收可以自行启动)
# rz (从客户端上传文件到linux服务端)