Linux XShell uploads and downloads local files to the Linux server

1. Connection settings (linux client)


Note: 1. Correctly fill in the user identity authentication information (user name and password);

     2. Add the above settings in ZMODEM


2. Linux server settings

On the Linux host, install the upload and download toolkit rz and sz;  if you don’t know the specific name of the package you want to install, you can use yum provides */name to find the information of the system’s own software package;

  1. [root@localhost src]# yum provides */rz  
  2. lrzsz-0.12.20-27.1.el6.i686 : The lrz and lsz modem communications programs  
  3. Repo        : base  
  4. Filename    : /usr/bin/rz  

Generally, the name and version of the package will be listed, as well as the installation path; after querying the package name, use yum install -y package name to install it.

After the lrzsz package is installed, it includes upload rz and download sz commands; you only need to install this package.

  1. [root@localhost src]# yum install -y lrzsz  


3. To upload a file from Windows, the upload command is rz; enter rz in the Linux command line, and the uploaded file is in the directory of the current command line;

  1. [root@localhost src]# rz  

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



4. To download files from the Linux host, the download command is sz, followed by the name of the file to be downloaded; you can choose the folder to save the download;

  1. [root@xyx-vsver01 webapps]# sz file name  

Guess you like

Origin blog.csdn.net/qq_34068440/article/details/78083369