Sftp
SFTP secure FTP is a file transfer management tool based on SSH security protocol. Because it is based on SSH, it will encrypt the user's password, data and other sensitive information in the transmission process, so it can effectively prevent the user information from being stolen in the course of transmission, not only can transfer the file data, but also can carry on the remote file management.
To establish a connection:
# SFTP [email protected]
To upload a file from a 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
Scp
The SCP, secure 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
Sz/rz
Sz/rz is a command based on the Zmodem transport protocol. The transmission of data will be verified, and has good transmission performance, it is very convenient to use.
Download data to local download directory:
# sz filename1 filename2 ...
Upload data to Remote:
# Rz–be
The client will pop up the upload window.
Common file transfer commands in Linux and how to use them