Use SecureCRT between windows and linux to upload and download files

Source: Internet
Author: User
When using SSH to manage linux servers, you often need to remotely interact with local files. the direct use of the built-in SecureCRT upload and download function is undoubtedly the most convenient, SecureCRT file transmission protocols include ASCII, Xmodem, 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. the procedure is as follows:
1. install lrzsz on the server before using SecureCRT for upload and download:
A: use yum to install CentOS.

Copy codeThe code is as follows: yum-y install lrzsz
B: compile and install
1. download lrzsz-0.12.20.tar.gz from the address below
Https://ohse.de/uwe/releases/lrzsz-0.12.20.tar.gz
2. view the INSTALL documentation to learn about the installation parameters and details.
3. decompress the file

Copy codeThe code is as follows: tar zxvf lrzsz-0.12.20.tar.gz
4. enter the Directory

Copy codeThe code is as follows: cd lrzsz-0.12.20
5../configure -- prefix =/usr/local/lrzsz
6. make
7. make install
8. create soft links

Copy codeThe code is as follows: # cd/usr/bin
# Ln-s/usr/local/lrzsz/bin/lrz rz
# Ln-s/usr/local/lrzsz/bin/lsz sz
9. test
Run rz to bring up the SecureCRT Upload window. use SecureCRT to upload and download files.
2. set the default directory for SecureCRT upload and download.
The configuration options are as follows:

Copy codeThe code is as follows: options-> session options-> Terminal-> Xmodem/Zmodem
Find this option and set the directory for upload and download in the right directory.

3. use SecureCRT 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.
4. use SecureCRT to download the file to the client:

Copy codeThe code is as follows: sz filename
Zmodem can automatically start receiving. the downloaded files are stored in the default download directory you set.

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

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.