Mac iTerm 2 download files from remote upload using rz, sz

Source: Internet
Author: User

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:

  1. download and install ITerm2

    http://www.iterm2.com/#/section/downloads

    description: after the download is complete, install it directly and use it!

  2. 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!

  3. 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

  4. 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"/>

  5. 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  

  6. 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.