Linux File upload download note (RZ,SZ,SFTP,SCP) command

Source: Internet
Author: User
Tags ftp client secure copy

Software (package) installation/uninstallation

Yum-y Install package name (Support *): automatic selection of y, automatic
Yum Install package name (support *): Manually select Y or n
Yum Remove package name (not supported *)
RPM-IVH Package Name (support *): Install RPM Package
RPM-E Package name (not supported *): Uninstall RPM Package

-----------------------------------------------------------

First install: RZ SZ Command Pack (if installed, no more installation of OH)

Yum-y Install Lrzsz

RZ (receive), SZ (send), commands are for the server, you can understand

RZ (Upload a file to the server), enter the command at the SecureCRT terminal, prompting the user to choose to upload the file.

SZ (download part), sz file1 file2 file3 ..., for example Sz/etc/ssh/ssh_config

SZ download file saved directory, default in (System disk \ user \ current user \ Download. For example: C:\User\Administrator\downloads), can be viewed and modified by the following actions,

Resources (from Baidu).

Several types of file transfer commands in Linux sz RZ sftp SCP Introduction
1.sftp

Secure FTP
is a file transfer management tool based on SSH security protocol. Because it is based on SSH, the user's password, data and other sensitive information will be encrypted during transmission, so the user information can be effectively prevented.
is stolen during transmission, and has higher security than FTP. In terms of functionality and FTP very similar, not only can transfer file data, and can be remote file management (such as the establishment, deletion, view files
list, and so on). Although SFTP and FTP have only one word difference, the transmission protocol based on it is different. Therefore, you cannot use the SFTP client to connect to the FTP server.
FTP client to connect to SFTP server.
Establish connection: sftp [email protected]

Upload files from Local: Put LocalPath
Download file: Get RemotePath
The local operation corresponding to the remote, only need to add "l" before the command, easy to remember.

Example: LCD lpwd lmkdir

2.scp

Scp:secure copy (remote file copy program) is also a file transfer command based on the SSH security protocol. Unlike SFTP, it only provides file transfer between hosts, without the ability to manage files.
Copy local_file to remote directory Remote_folder

SCP Local_file [Email Protected]:remote_folder

Copy Local_folder to remote Remote_folder (need to add parameter-R recursion)

Scp–r Local_folder [Email protected]:remote_folder

The above command, in turn, is copied remotely to the local

3.sz/rz

Sz/rz is a command based on the Zmodem transport protocol. The transmitted data is verified and has good transmission performance. It is very convenient to use, but only if the window end requires a Telnet or SSH client capable of supporting Zmodem, such as SECURECRT.

First of all, you can configure the relevant local download and upload directory in SecureCRT, and then use the RZ, SZ command to transfer file data conveniently.

Download data to local download directory: SZ filename1 filename2 ...
Upload data to Remote: Execute RZ–BE command, the client will pop up the upload window, the user chooses (can choose multiple) to upload the file.

Linux File upload download note (RZ,SZ,SFTP,SCP) command

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.