Linux Base Command (26) upload and download files with SECURECRT

Source: Internet
Author: User
Tags ftp ssh file transfer protocol

Using SSH to manage Linux servers often requires remote and local interaction files. While the upload and download function directly with SECURECRT is the most convenient, SECURECRT file Transfer Protocol has ASCII, Xmodem and Zmodem.

File Transfer Protocol:

File transfer is the main form of data interchange. In the case of file transfer, we need to establish a unified transport protocol between the two computers in order for the files to be properly identified and delivered. This protocol includes the identification of documents, the starting and ending time of transmission, the error judgment and correction, and so on. Common transport protocols include the following:

ASCII: This is the fastest transport protocol, but only text files can be routed.

Xmodem: This old transmission protocol is slow, but with CRC error detection, the accuracy of transmission can be as high as 99.6%.

Ymodem: This is an improved version of Xmodem that uses 1024-bit segments to deliver faster than Xmodem.

Zmodem:zmodem adopts a series-flow (streaming) transmission mode, the transmission speed is fast, and it also has the function of automatically changing the section size and breaking the breakpoint, fast error detection and so on. This is the most popular file transfer protocol at the moment.

In addition to the above several, there are Imodem, Jmodem, Bimodem, Kermit, Lynx and other agreements, as there is no majority of vendors support, here is omitted.

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

A You need to install Lrzsz for the server before uploading the download using SECURECRT:

1, download the lrzsz-0.12.20.tar.gz from the following address

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

2, look inside the install document to understand the installation parameter description and details

3, Extract files

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, the establishment of soft links

#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, use SecureCRT to upload and download files.

Two Set SECURECRT upload and download the default directory on the line

Options->session Options->terminal->xmodem/zmodem under

Set up the uploaded and downloaded directories in the right column directory

Three Uploading files from the client to a Linux server using Zmodem

1. Login to Linux terminal with SECURECRT.

2. Select the path where you want to place the uploaded file, and then enter the RZ command in the directory, SECURECRT will pop up the file selection dialog box, find the file you want to upload in the search range, and 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 select the directory where the files are stored under Linux and enter the RZ command. Liunx the file to the directory.

Four Use Zmodem to download files to the client:

SZ filename

Zmodem receive can be started by itself. The downloaded file is stored in the default download directory you set.

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

See a full set of tutorials: http://www.bianceng.cn/OS/Linux/201301/35075.htm

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.