"Go" one Linux command per day (26): Upload and download files with SECURECRT

Source: Internet
Author: User
Tags file transfer protocol

Original URL: http://www.cnblogs.com/peida/archive/2012/11/28/2793181.html

When you use SSH to manage Linux servers, you often need to interact with files remotely and locally. The upload and download function directly with SECURECRT is the most convenient, and SECURECRT file Transfer Protocol has ASCII, Xmodem, Zmodem.
File Transfer Protocol:
File transfer is the main form of data exchange. In the case of file transfer, in order for the file to be correctly identified and transmitted, we need to establish a unified transport protocol between the two computers. This protocol includes the identification of documents, the starting and ending time of transmission, the judgment and correction of errors, etc. The common transport protocols are as follows:
ASCII: This is the fastest transport protocol, but only text files can be transferred.
Xmodem: This ancient transmission protocol is slow, but due to the use of CRC error detection method, the transmission accuracy rate can be as high as 99.6%.
Ymodem: This is an improved version of Xmodem, using 1024-bit segments to deliver faster than Xmodem
Zmodem:zmodem adopts the stream-flow (streaming) transmission mode, the transmission speed is fast, but also has the function of automatically changing the section size and the breakpoint continuation transmission, the fast error detection and so on. This is currently the most popular file transfer protocol.
In addition to the above several, there are Imodem, Jmodem, Bimodem, Kermit, lynx and other agreements, because there is no majority of manufacturers support, here is omitted to say.

SecureCRT can use the Zmodem protocol under Linux to quickly transfer files, very convenient to use. Specific steps:

A Before uploading a download using SECURECRT, you need to install Lrzsz to the server:

1. Download lrzsz-0.12.20.tar.gz from the address below

Http://down1.chinaunix.net/distfiles/lrzsz-0.12.20.tar.gz

2. Check the install documentation inside for instructions and details on installation parameters.

3. Unzip the file

Tar zxvf lrzsz-0.12.20.tar.gz

4. Enter the catalogue

CD lrzsz-0.12.20

5,./configure--prefix=/usr/local/lrzsz

6. Make

7. Make Install

8. Establish a soft link

#cd/usr/bin

#ln-S/usr/local/lrzsz/bin/lrz RZ

#ln-S/usr/local/lrzsz/bin/lsz sz

9. Testing

Run RZ pop-up securecrt upload window and use SecureCRT to upload and download files.

Two Set the default directory for SECURECRT uploads and downloads.

Options->session Options->terminal->xmodem/zmodem
Directory settings for uploading and downloading in the right column directory

Three Using Zmodem to upload files from a client to a Linux server

1. Log in to the Linux terminal with SECURECRT.
2. Select the path where you want to place the uploaded file, in the directory and then enter the RZ command, SECURECRT will pop up the file selection dialog box, find the file you want to upload in the search scope, press the Add button. Then OK can upload the file to Linux.
Or, in the Transfer->zmodem upoad list pop-up File selection dialog box, select the file and press the Add button. Then the OK window closes automatically. Then under Linux, select the directory where the files are stored and enter the RZ command. Liunx the file to the directory.

Four To download files to the client using Zmodem:
SZ filename
Zmodem receive can start on its own. The downloaded file is stored in the default download directory you set.


Rz,sz is a command-line tool that Linux/unix Zmodem file transfer with Windows, the Windows side needs to support Zmodem TELNET/SSH client, SECURECRT can log in SecureCRT to unix/ Linux host (telnet or SSH) O Run command RZ, that is, to receive files, SECURECRT will pop up the file selection dialog box, select the file and close the dialog box, the file will be uploaded to the current directory O run the command sz File1 File2 is to send files to Windows (the saved directory can be configured) more convenient than the FTP command, and the server does not have to open the FTP service

"Go" one Linux command per day (26): Upload and download files with SECURECRT

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.