Operations 4 min read

Transfer Files Between Windows and Linux Using rzsz in XShell – Step-by-Step Guide

This guide explains how to install and use the rzsz utility on Windows and remote Linux machines through XShell, covering network verification, package installation via yum, and file upload/download commands with both drag‑and‑drop and terminal‑based methods.

Liangxu Linux
Liangxu Linux
Liangxu Linux
Transfer Files Between Windows and Linux Using rzsz in XShell – Step-by-Step Guide

Overview

The rzsz tool enables file transfer between a Windows workstation and a remote Linux server when using XShell. After installing the utility, files can be uploaded by dragging them onto the terminal or by invoking the rz command, and downloaded with sz.

Prerequisite: Verify Network Connectivity

Ensure the machine has network access. On a local server you can run ping -c 5 www.baidu.com. If the output shows an IP address and round‑trip times, the network is reachable. (Cloud servers can skip this step.)

Locate and Install the rzsz Package

List available packages and filter for rzsz: yum list | grep rzsz Install the package (use sudo if you are not root):

sudo yum install -y lrzsz.x86_64

Downloading Files from the Remote Host

After installation, you can pull a file from the Linux server to your Windows machine with the sz command: sz file1.txt The file will appear on the local desktop.

Uploading Files to the Remote Host

Method 1 – Drag and Drop

Simply drag the desired file from Windows onto the XShell terminal window; the upload starts automatically.

Method 2 – Using the rz Command

Run rz in the terminal. A file‑selection dialog opens; choose the file to upload.

rz

Visual Aids

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.

LinuxWindowsfile transferXshellyumrzsz
Liangxu Linux
Written by

Liangxu Linux

Liangxu, a self‑taught IT professional now working as a Linux development engineer at a Fortune 500 multinational, shares extensive Linux knowledge—fundamentals, applications, tools, plus Git, databases, Raspberry Pi, etc. (Reply “Linux” to receive essential resources.)

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.