1. directly use commands in Shell
First, it is best to set the directory for transferring files between the local and remote hosts, because the command will not prompt you to select the target directory for downloading files.
Setting method: the local directory is set in "local directory" of "option-" session option-"SFTP tag.
After the directory is set, you can use commands to upload and download files.
Upload Command: RZ-be
After RZ is entered, securecrt will open a file selection dialog box for you to select the files to be uploaded. You can upload files in batches.
-B: Upload in binary mode. The default value is text.
-E: escape all control characters.
(If you want to ensure that the content of the uploaded file is consistent with that of the original file after being saved on the server side, it is best to set both of these two marks at the same time)
Download command: SZ
Format: SZ file1 file2 .....
View SZ more options with SZ-H
The usage is simple, but unfortunately, using these two commands cannot transmit directories, but only files.
2. Use the SFTP function of securecrt
Right-click the connected remote host tab and select "connect to SFTP" to establish a connection to SFTP. This is a connection session using commands that does not provide a graphical interface.
Directory conversion:
On the remote host: You can use all the shell directory and file operation commands: ls, PWD, CD and so on to change the directory on the remote host. You cannot use file editing tools such as VI.
On the local host: to operate the local directory, add "L" before the preceding command, that is
Ls-lls, PWD-lpwd, CD-LCD
File Transfer
Upload File: Put File Upload Directory: Put-r dir
Download file: Get File Download Directory: Get-r dir
Note: wildcard characters such as * can be used for file.
If you log on to a remote host through a channel machine, SFTP is not available. For example, if you log on to 60.25.21.148 through 10.10.20.124, the operation is on 60.25.21.148. You cannot directly right-click to establish an SFTP connection. Therefore, you can only use the command above to operate between Sz and RZ.
----------------------------------------------------------------
[Securecrt
Use sz/Rz to upload large files]
SC-bey
RZ-bey
-B, -- binary Transfer
-E, -- escape control characters (z)
-Y, -- overwrite existing files
-B binary is uploaded and downloaded using the binary action. The character is not ASCII.
-E forces escape to have all the dominant characters, such as Ctrl + X and Del.
Use the following command to upload large files without errors:
- RZ-Bye