With Xshell, using the Linux command sz can easily download files on the server to local, using the RZ command to upload local files to the server.
Among them, for SZ and RZ understanding and memory I used the following methods (often easy to confuse):
The s in SZ mean Send (send), tell the client, I (server) to send the file send to Cilent, is equivalent to the client in the download.
RZ in R means received (receive), tell the client, I (server) to receive files received by Cilent, is equivalent to the client in the upload.
Remember, either send or received, the action is initiated on the server. We are used to saying that upload or download, in fact, it is not necessary. with these two commands, just think about whether you want to send the file out of the server or receive it back from the client.
If you want to upload files from the client to the server, that is, the server will receive the file back, the logic is: I (client) upload, you (server) receive, using RZ.
If you want to download the file from the server back (to the client), the server will send the file, the logic is: I downloaded (the client), you (server) sent, using SZ.
Well, the final summary is a sentence:
I (client) uploads, you (server) receive (RZ), I download (client), you (server) send (SZ).
--------------------------------------------------------------------------------------------------------------- --------------
SZ usage:
Download a file sz filename download multiple files sz filename1 filename2 download all files under dir directory, do not include the folder under Dir sz dir/*
RZ usage:
After entering RZ Enter, the file selection dialog will appear, select the file you want to upload, you can specify more than one file at a time, and upload the path to the server as the directory of the currently executing RZ command.
Use Xshell to upload and download files (using SZ and RZ commands), Super practical!