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:
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:
|
<<: MySQL learning notes: complete select statement usage example detailed explanation
>>: Tips for implementing list loop scrolling based on jQuery (super simple)
Problem: The partition where MySQL stores data fi...
1. Demand A picture moves from left to right in a...
This article mainly introduces an example of how ...
First of all, let's talk about the execution ...
background Now the company's projects are dev...
View installation and uninstallation # View rpm -...
Use native JS to write a nine-square grid to achi...
1. Use frameset, frame and iframe to realize mult...
Achieve results Implementation Code html <div ...
Recently I saw the article Build your own React o...
binlog is a binary log file that records all DML ...
Table of contents 1. Introduction to import_table...
Table of contents 1. Reasons for index failure 2....
Table of contents 1 Difference 1.1 Space Occupanc...
Use the --all-database parameter when performing ...