Use securecrt to upload and download data

Source: Internet
Author: User
Tags file transfer protocol

With securtcrt, the Linux Command SZ can easily download files from the server to the local, and the RZ command is used to upload local files to the server.

 

Here, I use the following methods for understanding and memorizing Sz and RZ (it is often easy to confuse ):

 

In SZ, "S" means "send" and tells the client that "I (server)" wants to send the file "send to cilent", which is equivalent to "Download" on the client.

 

The R in RZ indicates received, and tells the client that the client is uploading the received ed by cilent file.

 

Remember that the action is initiated on the server, whether it is send or received. We are used to uploading or downloading, but it is not necessary. To use these two commands, you only need to think about whether to send the file from the server or connect it to the client.

 

If you want to upload a file from the client to the server, the server receives the file. The logic is: I (client) Upload. You (server) receive the file and use Rz.

 

If you want to download the file back from the server (to the client), the server sends the file. The logic is: I download (client), you (server) Send, use Sz.

 

Well, the last sentence is as follows:

I (client) Upload, you (server) receive (RZ), I download (client), you (server) Send (sz ).

 

 

 

The file transfer protocols in securecr include ASCII, XMODEM, and zmodem.
File Transfer Protocol
File Transfer is the main form of data exchange. To ensure correct identification and transmission of files during file transfer, we need to establish a unified transfer protocol between the two computers. This Protocol includes File identification, transfer start and end times, and error judgment and correction. Common transmission protocols include the following:

ASCII: This is the fastest transmission protocol, but it can only transmit text files.

XMODEM: this old transmission protocol is slow, but the CRC error detection method can achieve a Transmission Accuracy of up to 99.6%.

Ymodem: This is an improved version of XMODEM. It uses a 1024-bit segment for transmission, which is faster than XMODEM.

Zmodem: zmodem uses Streaming Transmission Mode to achieve fast transmission speed. It also provides functions such as automatic change of segment size, resumable data transfer, and fast error detection. This is currently the most popular file transfer protocol.

In addition to the above protocols, there are also protocols such as imodem, jmodem, bimodem, Kermit, and lynx. Since most vendors do not support these protocols, I will skip them here.
Securecrt can use the zmodem protocol in Linux to quickly transfer files.

You only need to set the default directory for upload and download.
Options-> session options-> terminal-> under XMODEM/zmodem
Set the directory for upload and download in the right directory.

 Use zmodem to upload files from the client to the Linux Server
1. log on to the Linux terminal using securecrt.
2. select the path of the file to be uploaded, and enter the RZ command in the directory. securecrt will pop up the file selection dialog box. Find the file to be uploaded in the search range, and press the Add button. Then OK, you can upload the file to Linux.
Alternatively, the file selection dialog box is displayed in transfer-> zmodem upoad list. After selecting the file, click Add. Then the OK window is automatically closed. In Linux, select the directory for storing files and enter the RZ command. Liunx uploads the file to this directory.

Use zmodem to download the file to the client:
SZ filename
Zmodem can automatically start receiving. The downloaded files are stored in the default download directory you set.

Note:
Rz, SZ is a command line tool for zmodem file transmission in Linux/Unix and windows. windows must support the Telnet/ssh client of zmodem, securecrt can be used to log on to the Unix/Linux host (telnet or SSH) O Run Command RZ, that is, to receive files. securecrt will pop up the file selection dialog box. After selecting the files, close the dialog box, the file will be uploaded to the current directory o run command SZ file1 file2 is to send the file to Windows (the saved directory can be configured) more convenient than the FTP command, and the server no longer needs to open the FTP service

 

 

If the RZ, SZ command is invalid, so please first install rzsz-0.12.20-853.2.i586.rpm

The installation method is as follows:

Rpm-IVH rzsz-0.12.20-853.2.i586.rpm

 

Yum install lrzsz

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.