远程Linux服务器中,去试了试
sz
rz
都找不到:
[root@jiandao jiandaoweixin]# pwd /root/jiandaoweixin [root@jiandao jiandaoweixin]# sz -bash: sz: command not found [root@jiandao jiandaoweixin]# lzsz -bash: lzsz: command not found [root@jiandao jiandaoweixin]# rz -bash: rz: command not found [root@jiandao jiandaoweixin]# |
搜:
mac securecrt send file
mac securecrt sz: command not found
用secureCRT传送文件提示:bash: rz: command not found – 专注Linx,与Linux共舞 – 51CTO技术博客
然后去:
[已解决]Mac中SecureCRT的SSH连接远端服务器但是过会不用就中断
去安装lrzsz:
yum install lrzsz
[root@jiandao jiandaoweixin]# yum install lrzsz Loaded plugins: langpacks Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast base | 3.6 kB 00:00:00 epel | 4.3 kB 00:00:00 extras | 3.4 kB 00:00:00 mysql-connectors-community | 2.5 kB 00:00:00 mysql-tools-community | 2.5 kB 00:00:00 mysql56-community | 2.5 kB 00:00:00 nginx | 2.9 kB 00:00:00 updates | 3.4 kB 00:00:00 (1/8): epel/x86_64/group_gz | 170 kB 00:00:00 (2/8): extras/7/x86_64/primary_db | 149 kB 00:00:00 (3/8): epel/x86_64/updateinfo | 590 kB 00:00:00 (4/8): mysql-tools-community/x86_64/primary_db | 26 kB 00:00:00 (5/8): mysql56-community/x86_64/primary_db | 137 kB 00:00:01 (6/8): nginx/x86_64/primary_db | 14 kB 00:00:00 (7/8): epel/x86_64/primary_db | 4.3 MB 00:00:03 (8/8): updates/7/x86_64/primary_db | 6.4 MB 00:00:06 Resolving Dependencies <div–<> Running transaction check <div–<-> Package lrzsz.x86_64 0:0.12.20-36.el7 will be installed <div–<> Finished Dependency Resolution Dependencies Resolved ============================================================================================================ Package Arch Version Repository Size ============================================================================================================ Installing: lrzsz x86_64 0.12.20-36.el7 base 78 k Transaction Summary ============================================================================================================ Install 1 Package Total download size: 78 k Installed size: 181 k Is this ok [y/d/N]: y Downloading packages: lrzsz-0.12.20-36.el7.x86_64.rpm | 78 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : lrzsz-0.12.20-36.el7.x86_64 1/1 Verifying : lrzsz-0.12.20-36.el7.x86_64 1/1 Installed: lrzsz.x86_64 0:0.12.20-36.el7 Complete! [root@jiandao jiandaoweixin]# |
然后再去看看语法:
[root@jiandao jiandaoweixin]# rz –help rz version 0.12.20 Usage: rz [options] [filename.if.xmodem] Receive files with ZMODEM/YMODEM/XMODEM protocol (X) = option applies to XMODEM only (Y) = option applies to YMODEM only (Z) = option applies to ZMODEM only -+, –append append to existing files -a, –ascii ASCII transfer (change CR/LF to LF) -b, –binary binary transfer -B, –bufsize N buffer N bytes (N==auto: buffer whole file) -c, –with-crc Use 16 bit CRC (X) -C, –allow-remote-commands allow execution of remote commands (Z) -D, –null write all received data to /dev/null –delay-startup N sleep N seconds before doing anything -e, –escape Escape control characters (Z) -E, –rename rename any files already existing –errors N generate CRC error every N bytes (debugging) -h, –help Help, print this usage message -m, –min-bps N stop transmission if BPS below N -M, –min-bps-time N for at least N seconds (default: 120) -O, –disable-timeouts disable timeout code, wait forever for data –o-sync open output file(s) in synchronous write mode -p, –protect protect existing files -q, –quiet quiet, no progress reports -r, –resume try to resume interrupted file transfer (Z) -R, –restricted restricted, more secure mode -s, –stop-at {HH:MM|+N} stop transmission at HH:MM or in N seconds -S, –timesync request remote time (twice: set local time) –syslog[=off] turn syslog on or off, if possible -t, –timeout N set timeout to N tenths of a second -u, –keep-uppercase keep upper case filenames -U, –unrestrict disable restricted mode (if allowed to) -v, –verbose be verbose, provide debugging information -w, –windowsize N Window is N bytes (Z) -X –xmodem use XMODEM protocol -y, –overwrite Yes, clobber existing file if any –ymodem use YMODEM protocol -Z, –zmodem use ZMODEM protocol short options use the same arguments as the long ones [root@jiandao jiandaoweixin]# sz –help sz version 0.12.20 Usage: sz [options] file … or: sz [options] -{c|i} COMMAND Send file(s) with ZMODEM/YMODEM/XMODEM protocol (X) = option applies to XMODEM only (Y) = option applies to YMODEM only (Z) = option applies to ZMODEM only -+, –append append to existing destination file (Z) -2, –twostop use 2 stop bits -4, –try-4k go up to 4K blocksize –start-4k start with 4K blocksize (doesn’t try 8) -8, –try-8k go up to 8K blocksize –start-8k start with 8K blocksize -a, –ascii ASCII transfer (change CR/LF to LF) -b, –binary binary transfer -B, –bufsize N buffer N bytes (N==auto: buffer whole file) -c, –command COMMAND execute remote command COMMAND (Z) -C, –command-tries N try N times to execute a command (Z) -d, –dot-to-slash change ‘.’ to ‘/’ in pathnames (Y/Z) –delay-startup N sleep N seconds before doing anything -e, –escape escape all control characters (Z) -E, –rename force receiver to rename files it already has -f, –full-path send full pathname (Y/Z) -i, –immediate-command CMD send remote CMD, return immediately (Z) -h, –help print this usage message -k, –1k send 1024 byte packets (X) -L, –packetlen N limit subpacket length to N bytes (Z) -l, –framelen N limit frame length to N bytes (l>=L) (Z) -m, –min-bps N stop transmission if BPS below N -M, –min-bps-time N for at least N seconds (default: 120) -n, –newer send file if source newer (Z) -N, –newer-or-longer send file if source newer or longer (Z) -o, –16-bit-crc use 16 bit CRC instead of 32 bit CRC (Z) -O, –disable-timeouts disable timeout code, wait forever -p, –protect protect existing destination file (Z) -r, –resume resume interrupted file transfer (Z) -R, –restricted restricted, more secure mode -q, –quiet quiet (no progress reports) -s, –stop-at {HH:MM|+N} stop transmission at HH:MM or in N seconds –tcp build a TCP connection to transmit files –tcp-server open socket, wait for connection -u, –unlink unlink file after transmission -U, –unrestrict turn off restricted mode (if allowed to) -v, –verbose be verbose, provide debugging information -w, –windowsize N Window is N bytes (Z) -X, –xmodem use XMODEM protocol -y, –overwrite overwrite existing files -Y, –overwrite-or-skip overwrite existing files, else skip –ymodem use YMODEM protocol -Z, –zmodem use ZMODEM protocol short options use the same arguments as the long ones [root@jiandao jiandaoweixin]# |
和:
[root@jiandao jiandaoweixin]# sz sz: need at least one file to send Try `sz –help’ for more information. |
-》不能像windows中的secureCRT中一样,弹出选择文件的对话框啊。。。
rz: command not found – howard的技术之路 – 博客频道 – CSDN.NET
Linux基础:利用SSH上传、下载(使用sz与rz命令) – Share your knowledge – 51CTO技术博客
好像是应该用rz?
果然是,应该是用rz==receive file==对于远端服务器来说,要接受(从客户端,此处的Mac)发送过来的文件
然后选择了一个文件,双击,即可
添加了,并且开始传送:
[root@jiandao ~]# ll total 184216 -rwxr-xr-x 1 root root 8551 Dec 10 2015 a.out -rw-r–r– 1 root root 4260 Apr 25 19:09 create-config-db.sql -rw-r–r– 1 root root 28467141 Nov 18 2015 elasticsearch-2.0.0.rpm -rw-r–r– 1 root root 0 Jan 2 2016 hs_err_pid15741.log -rw-r–r– 1 root root 50753 Nov 7 2015 hs_err_pid5926.log -rw-r–r– 1 root root 160084320 Aug 7 2015 jdk-8u60-linux-x64.rpm -rw-r–r– 1 root root 128 Dec 10 2015 t.c -rw-r–r– 1 root root 1462 Dec 10 2015 uninstall.sh [root@jiandao ~]# cd /usr/share/nginx/html/jiandaoweixin/ [root@jiandao jiandaoweixin]# ll total 12 -rw-r–r– 1 root root 9074 Aug 6 14:17 index.html [root@jiandao jiandaoweixin]# pwd /usr/share/nginx/html/jiandaoweixin [root@jiandao jiandaoweixin]# |
然后再去批量上传文件:
转载请注明:在路上 » [已解决]mac中通过SecureCRT给服务器端发送文件