Operations 3 min read

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.

Open Source Linux
Open Source Linux
Open Source Linux
How to Transfer Files Between Windows and Linux with rzsz via XShell

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_64

Use 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

rz

In the pop‑up window, select the file to upload.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

Linuxcommand-linefile transferXshellrzsz
Open Source Linux
Written by

Open Source Linux

Focused on sharing Linux/Unix content, covering fundamentals, system development, network programming, automation/operations, cloud computing, and related professional knowledge.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.