How to use commands in securecrt shell to upload and download files

Source: Internet
Author: User

Securecrt is easy to set when you remember the password, so this person is used to securecrt, but the file upload function has never been figured out. Pshell has been used for a long time, because pshell has a powerful secureftp function. After opening it, You can directly drag the directory or file to this window. Securecrt is not that convenient.

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
After RZ is entered, securecrt opens a file selection dialog box for users to select the file to be uploaded.
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.