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

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

 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.



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

Related Article

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.