Use securecrt to directly upload and download files (SZ, Rz)

Source: Internet
Author: User

The method of transferring files to Linux in window.

First, install securecrt in the window, and then establish a connection to Linux in the quick connection. Of course, you must first know the IP address of your system and enter ifconfig in the terminal to view it.

Connect to the Linux terminal.

To upload files from Linux to Windows, you need to CD to the directory of the files you want to upload, and then use the command: SZ file name to upload the files. Put the file under securesrt/download

To transfer a file from window to Linux, enter rz in the terminal, and a dialog box will pop up asking you to choose file transfer.

Generally, most Linux servers use SSH clients for remote login and management. After using SSH to log on to Linux Hosts, how can we quickly interact with files on local machines, that is, uploading and downloading files to the server and local device;
Two commands related to SSH can provide convenient operations:
SZ: Send the selected file to the Local Machine
RZ: running this command will pop up a file selection window, from the local selection file upload to the server (receive)

Rz, SZ is the command line tool for zmodem file transmission in Linux/Unix and windows.

Windows must support zmodem Telnet/SSH clients (such as securecrt)

Run the RZ command to receive the file. securecrt will pop up the file selection dialog box. After selecting the file, close the dialog box and the file will be uploaded to the current directory.

Note: If you use RZ separately, there will be two problems: the upload is interrupted, and the Upload File changes (MD5 is different). The solution is to use RZ-be for uploading, remove the check box before "upload files as ASCII" in the pop-up dialog box.
-B binary files are uploaded and downloaded in binary format. The characters are not interpreted as ASCII.
-E forces escape to control all characters, such as Ctrl + X and Del.

Running command SZ file1 file2 is to send files to Windows (the saved directory can be configured) is much more convenient than FTP command, and the server no longer needs to enable FTP service

PS: Linux on the RZ/SZ these two gadgets install the lrzsz-x.x.xx.rpm.
Of course, you can also set the directory:
Set the default directory for upload and download
Options-> session options-> File Transfer allows you to set the upload and download directories.
For the rest, you only need to log on to the Linux terminal using securecrt:
Send the file to the client: SZ filename
Zmodem reception can be started by itself.
Upload files from the client to the Linux Server:
As long as the server executes: RZ
Then select File Sending in securecrt, protocol zmodem

Appendix: Yum checks the installation package usage based on the command name
For example, query the installation package name of the RZ command.

yum  whatprovides */rz

 

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.