How to Transfer Files Between Windows and Linux with rzsz via XShell
This guide explains how to install and use the rzsz tool on Windows and remote Linux machines through XShell, covering network checks, package installation, and file upload/download via command line or drag‑and‑drop methods.
About rzsz
This tool is used on Windows machines and remote Linux machines via XShell to transfer files. After installation, files can be uploaded by dragging.
First, check whether the machine can access the network.
Use the ping command to verify connectivity (skip this step for cloud servers). ping -c 5 www.baidu.com If an IP address and latency values appear, the network is reachable.
List available packages with yum list and filter for rzsz using grep . yum list | grep rzsz The command shows the rzsz package; proceed to install it.
Install Software
You can install the package directly by name, optionally using sudo if needed.
If installation fails as a regular user, run the command with sudo .
sudo yum install -y lrzsz.x86_64Use Commands
Download a file to the local machine using sz (e.g., sz file1.txt ). sz file1.txt The file appears on the desktop after transfer.
Method 1: Drag and Drop
Simply drag the file onto the terminal window to upload.
Method 2: Use rz Command
rzIn the pop‑up window, select the file to upload.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Open Source Linux
Focused on sharing Linux/Unix content, covering fundamentals, system development, network programming, automation/operations, cloud computing, and related professional knowledge.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
