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