Xshell implementing Windows Upload files to a Linux host

Source: Internet
Author: User

Often there is such a requirement that we download packages in Windows, how to upload to a remote Linux host? And how to download packages from Linux hosts to Windows;

Before my practice now seems good stupid good cumbersome, but also to achieve the purpose, stupid people have this method;


How I do it:

1. Open a local Linux virtual machine, use mount to mount Windows shared folder to Linux, and then copy the data into the Linux virtual machine; (often the first step is not smooth, unable to mount Windows folder)

2, in the local Linux virtual machine using rsync synchronous copy of the data to the remote Linux host, need both sides to install Rsync package, openssh-clients package; it takes time to encounter a larger copy of the file;

3, there is a way to directly use wget direct download, in advance there is a download URL; most are downloaded to Windows Local and then uploaded to the remote Linux host;


Here is an easy way to upload Windows files to Linux or download from Linux to Windows locally;

1, using our commonly used Xshell login tool, the new set up a remote session, fill in the IP address and user name password, select the bottom ZMODEM, fill in the download path, load the path ; 2 paths can be the same or different;

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s3.51cto.com/wyfs02/m01/6d/15/wkiom1vb7jmdula6aajlbbdbwag716.jpg "title=" 1.jpg "alt=" Wkiom1vb7jmdula6aajlbbdbwag716.jpg "/>


2, on the Linux host, install the upload download Kit RZ and SZ

If you do not know the specific name of the package you want to install, you can use the Yum provides */name to find the system's own package information;

[email protected] src]# Yum provides */rzlrzsz-0.12.20-27.1.el6.i686:the LRZ and LSZ Modem communications Programsrepo : Basefilename:/usr/bin/rz

The package name and version are generally listed, as well as the installation path, and after the package name is queried, the Yum install-y package name is used for installation.

Lrzsz package installation, including uploading RZ, download sz command, only need to install this package.

[email protected] src]# Yum install-y lrzsz


3, upload files from windows, upload the command for RZ; at the Linux command line, enter RZ, the uploaded file is in the current command line directory;

[Email protected] src]# RZ

After entering the RZ command, the dialog will pop up, select the file you want to upload, select open to upload to the Linux host. After uploading, you can use LS to view;

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6D/15/wKiom1Vb7e7Qg7KBAAJSEEKdVSs344.jpg "title=" 2.jpg " alt= "Wkiom1vb7e7qg7kbaajseekdvss344.jpg"/>


4, download the file from the Linux host, download the command for SZ, followed by the file name to download, you can choose to download the saved folder;

[Email protected] src]# sz nginx-1.6.2.tar.gz

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6D/10/wKioL1Vb75jgJKDPAAFdIWibogc477.jpg "title=" 3.jpg " alt= "Wkiol1vb75jgjkdpaafdiwibogc477.jpg"/>




This method is relatively simple and fast, can meet the daily needs, there is a better way to welcome each other to communicate.


This article is from the "Model Student's Learning blog" blog, please be sure to keep this source http://8802265.blog.51cto.com/8792265/1653048

Xshell implementing Windows Upload files to a Linux host

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.