Several file transfer commands in Linux sz RZ sftp SCP

Source: Internet
Author: User
Tags file copy ftp client secure copy

Several file transfer commands in Linux sz RZ sftp SCP

Recently, when deploying the system, I contacted some file transfer commands to make a simple record:

1.sftp

Secure FTP is a file transfer management tool based on the SSH security protocol. Because it is based on SSH, it will encrypt the user's password, data and other sensitive information during the transmission, so it can effectively prevent the user information from being stolen during the transmission process, 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 file list and other operations). 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 or the FTP client to connect to the 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.

Related information:

2.XMODEM, Ymodem, zmodem:http://web.cecs.pdx.edu/~rootd/catdoc/guide/theguide_226.html

3.Wiki scp:http://en.wikipedia.org/wiki/secure_copy

Several file transfer commands in Linux sz RZ sftp SCP

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.