Upload and download files using SECURECRT (with SZ and RZ commands)
With SECURTCRT, 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).
Upload and download files using SECURECRT (with SZ and RZ commands)