Xshell implements local windows uploading files to VPS or downloading files

888u

Last update at :2024-05-02,Edit by888u


Usually, we need to upload files to the VPS, or download files from the VPS, which is usually achieved using winSCP. The smarter ones may use wget or set up an http environment to download. However, it is quite troublesome. Sometimes, when transferring a file, it is estimated to be only about 1K. It is very troublesome to open a winSCP specifically. Therefore, it is more convenient if you can directly upload or download files in the VPS in Xshell. For example, when we build 55, we upload the configuration file. It would be much more convenient if we could upload it directly.

In fact, it is very simple, just install the upload and download tool packages rz and sz.

The method is also very simple. On our newly created connection, first make the following settings:



1. Installation tools

After logging in to the VPS, if it is the centos series, run the following command:

yum install -y lrzsz

If it is ubuntu, replace yum with apt-get (we didn’t try it because we don’t have ubuntu).


2. Upload files from local to VPS

Run the following command:

rz

After entering the rz command, a dialog box will pop up. Select the file you want to upload, select Open and upload it to the Linux host. After uploading, you can use ls to view it;


3. Download files from VPS to local computer

To download files from the Linux host, the download command is sz, followed by the file name to be downloaded; you can select the downloaded save folder:

sz100.test


This method is relatively simple and quick, and can meet daily needs


4. Other upload and download methods

Another method is to install xftp, which is also quite simple and easy.


Recommended site search: US host, domain name check, mainland China domain name, pw domain name ws domain name, server space rental, mainland China station group server, free ip, free server website, website registration number, < /p>

Xshell implements local windows uploading files to VPS or downloading files

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码