Use SecureCRT to upload and download files

Source: Internet
Author: User
Tags ftp ssh file transfer protocol
When you use SSH to manage Linux servers, you often need to interact with files remotely and locally. and directly with SecureCRT upload download function is undoubtedly the most convenient, 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 start and end time of the transfer. Error judgment and correction, 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
The Zmodem:zmodem uses a streaming (streaming) transmission, which has a fast transmission speed and also has automatic change of section size and continuation of breakpoints. Fast error detection and other functions. This is currently the most popular file transfer protocol.
In addition to the above, there are Imodem.Jmodem.Bimodem.Kermit.Lynx and other agreements, because there is no majority of manufacturers support, this is omitted to say.

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

I. Before uploading and downloading 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 about the installation parameters
3. Unzip the file: Tar zxvf lrzsz-0.12.20.tar.gz
4. Access directory: CD lrzsz-0.12.20
5../configure--prefix=/usr/local/lrzsz
6.make
7.make Install
8. Create 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 upload and download
Options->session options->terminal->xmodem/zmodem, in the right column directory settings to upload and download directories

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. Download the file 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, and the Windows side needs a TELNET/SSH client that supports Zmodem.

SECURECRT can be used SECURECRT login to Unix/linux host (telnet or SSH can), run the command RZ, that is, 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, 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 no longer has to open the FTP service.


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.