Mac iTerm 2 download files from remote upload using rz, sz
There are many tools for remote file transfer, such as rz, sz;scp;ftp, and so On. I use the Mac operating system, which can usually be transferred via SCP. however, because the Company's test environment server needs to be accessed via a springboard machine, it is difficult to coordinate machines that cannot use SCP,FTP. The use of rz, sz tools to solve the above problems, the configuration of the main steps are as Follows:
-
download and install ITerm2
http://www.iterm2.com/#/section/downloads
description: after the download is complete, install it directly and use it!
Download the installation lrzsz, create a soft connection ( on Mac Ben )
~ Sudo brew Install Lrzsz
~ Ln-s/usr/local/cellar/lrzsz/0.12.20/bin/sz
~ LN-S/USR/LOCAL/CELLAR/LRZSZ/0.12.20/BIN/RZ
Description: Lrzsz is installed on both local and remote hosts!
Download and install automatic zmoderm for ITerm2
~ CD Usr/local/bin
~ sudo wget https://raw.github.com/mmastrac/iterm2-zmodem/master/iterm2-send-zmodem.sh
~ sudo wget https://raw.github.com/mmastrac/iterm2-zmodem/master/iterm2-recv-zmodem.sh
~ sudo chmod 777/usr/local/bin/iterm2-*
Script Address: Https://github.com/mmastrac/iterm2-zmodem
Add ITerm2 Trigger
ITerm2--Profiles---Open Profiles---Profiles---advanced----edit Trigger
Configuration Items:
Regular expression Action Parameters
\*\*b0100 Run Silent coprocess/usr/local/bin/iterm2-send-zmodem.sh
\*\*b00000000000000 Run Silent coprocess/usr/local/bin/iterm2-recv-zmodem.sh
As shown in the Following:
650) this.width=650; "src=" https://s2.51cto.com/oss/201710/25/7aa64e9e557ae0d2df398857da3ad44d.png "title=" screen shot 2017-10-25 pm 5.55.49.png "width=" "height=" 429 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:700px;height:429px; " alt= "7aa64e9e557ae0d2df398857da3ad44d.png"/>
- How to use(1) upload files to the remote server
Enter RZ on the remote server, return
Select a file to upload locally
Wait for upload
(2) download files from the remote server
enter SZ filename filename1 ... filenamen on the remote server Select the local storage directory
wait for download
Extended
Linux system upload Download tool rz/sz:http://wutengfei.blog.51cto.com/10942117/1970364
This article is from the "hand of the Paladin control" blog, please make sure to keep this source http://wutengfei.blog.51cto.com/10942117/1976103
Mac iTerm 2 download files from remote upload using rz, sz