Graphical instructions for uploading and downloading files to a remote Linux host based on SecureCRT

Graphical instructions for uploading and downloading files to a remote Linux host based on SecureCRT

Sometimes it is slow to download large network files directly on the Linux server through wget or curl tools. At this time, we usually use more modern download tools such as Thunder on the Windows platform to download the target file (the disgusting operation of Thunder that requires membership to achieve faster speed is off topic, by the way, I have also given a lot of money to Thunder~~~). At this time, we are faced with the problem of transferring files on the Windows platform to the remote Linux server.

There are many ways to transfer files from Windows platform to remote Linux server. Here is a brief record of how to operate and what to pay attention to under the currently popular Linux remote management tool SecureCRT!

First, use SecureCRT to connect to the remote host through the SSH2 protocol. Right-click on the Tab title page of the opened remote terminal window -> [Connect SFTP Session] to open the SFTP session window (SFTP is Secure File Transfer Protocol):

The SFTP session process monitors the directories and file resources on both the current host and the remote host. You can use the lpwd command to view the current directory on the current host and the pwd command to view the current directory on the remote host to confirm that the current working directories on both hosts are what we want:

If you find that the current directory of the local host is incorrect, you can use the lcd command to switch the directory to the desired directory! Similarly, if you find that the current directory of the remote host is incorrect, you can use the cd command to switch the directory to the desired directory:

When switching the current directory of the local host, the directory path under the Windows platform may be quite long, and it is difficult to enter manually (although you can use Tab smart input). In this case, after entering the lcd command plus a space, copy the long path directly under Windows, return to the SFTP dialog box, position the cursor on the lcd command and right-click, it will be automatically pasted!

If the directory following lcd or cd exists, but the system reports "The system cannot find the file specified.", it is probably because your path contains Chinese characters, and the character set encoding used by the current SFTP session is not UTF-8 (this is often the reason why Chinese characters are garbled in the SFTP dialog box):

At this time, open the Session Options settings dialog box through the menu Options->Session Options..., locate the Fonts area of ​​the Terminal->Appearance page in the Category on the left, and change the selected value of Character encoding to UTF-8:

Now everything is ready. Let's try uploading (pushing) a local file to the remote Linux host. To push a file to the remote host, use the put command:

You can see that we have uploaded a 479416KB (468MB) compressed file to the remote host/root directory, which is quite fast!

Now let's try to download the anaconda-ks.cfg file in the remote host's /root directory to the local current directory. The command to download the file from the remote host is get:

In fact, you can also use SecureCRT's SFTP session to upload files from the local Windows operating system to the remote Linux host by directly dragging and dropping the files into the SFTP dialog box, but you should also pay attention: if the target file's directories or file names contain Chinese characters, you should first change the character set encoding used by the SFTP session to UTF-8:

Finally, the following are the definitions of common SFTP commands:

help: Display all commands and usage provided by SFTP
pwd: print/display the current upload and download directory of the remote host
lpwd: Print/display the current upload and download directory of the local host
ls: List the files in the remote host upload and download directory
lls: List the files in the upload and download directory of the local host
cd: Change the remote host upload and download directory
lcd: Change the local host upload and download directory
get: Download the target file in the remote host upload and download directory to the local host upload and download directory
put: upload the target file in the local host upload and download directory to the remote host upload and download directory
quit or exit: disconnect the SFTP connection

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • A brief discussion on the problems of using securecrt vi editing in Ubuntu
  • Detailed process of downloading and installing SecureCRT
  • Steps to view the connection password in SecureCRTSecure7.0
  • Solution to garbled display of Linux SecureCRT
  • Solution to the problem of garbled Chinese characters displayed in SecureCRT
  • A very detailed tutorial on how to use SecureCRT

<<:  MySQL learning notes: complete select statement usage example detailed explanation

>>:  Tips for implementing list loop scrolling based on jQuery (super simple)

Recommend

How to modify the location of data files in CentOS6.7 mysql5.6.33

Problem: The partition where MySQL stores data fi...

Example of how to mosaic an image using js

This article mainly introduces an example of how ...

A comparison between the href attribute and onclick event of the a tag

First of all, let's talk about the execution ...

Implementation of debugging code through nginx reverse proxy

background Now the company's projects are dev...

Detailed explanation of rpm installation in mysql

View installation and uninstallation # View rpm -...

Native js realizes the drag and drop of the nine-square grid

Use native JS to write a nine-square grid to achi...

PHP-HTMLhtml important knowledge points notes (must read)

1. Use frameset, frame and iframe to realize mult...

Pure CSS drop-down menu

Achieve results Implementation Code html <div ...

Write a React-like framework from scratch

Recently I saw the article Build your own React o...

Detailed explanation of MySQL binlog usage

binlog is a binary log file that records all DML ...

Implementation of MySQL Shell import_table data import

Table of contents 1. Introduction to import_table...

MySQL index failure principle

Table of contents 1. Reasons for index failure 2....

The difference and choice between datetime and timestamp in MySQL

Table of contents 1 Difference 1.1 Space Occupanc...

How to filter out certain libraries during mysql full backup

Use the --all-database parameter when performing ...