Get the App
SLTechnology News&Howtos  ›  Servers  › 

What are the ways to upload files to the Linux server

Shulou Source: shulou.com Published: 2022-05-31 12:41:48 09月11日 Update

What are the ways to upload files to Linux servers? I believe many inexperienced people are helpless about this. For this reason, this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

1. Windows Upload files to Linux

1.1 graphical interface winscp

Suitable for transferring files and directories, but additional software winscp is required

1.2 lrzz kit

Apply to transfer files, use ssh remote login management software xshell or securecht can be.

Use xshell or securecht to connect to Linux servers via ssh.

Take CentOS 7.5 as an example, install lrzz suite

[root@zcwyou ~]# yum -y install lrzsz

Linux server receives remote files:

[root@zcwyou ~]# rz

The following image shows Windows uploading files to Linux using xshell

Windows uploads files to Linux using xshell

The following image shows Windows uploading files to Linux using securecht

Windows uploads files to Linux using securecht

2. Linux server sends files to Windows

Take sending 1.pcap as an example

[root@zcwyou ~]# sz 1.pcap

The following image shows Windows downloading Linux files using securecrt

Windows uses securert to transfer files with Linux

The following image shows Windows downloading Linux files using xshell

Windows uses xshell to transfer files with Linux

2.1 Upload files to Linux server via FTP protocol

You need to set up FTP service on Linux server first:

Please check out the related tutorials on this site.

Then download filezilla and install it on Windows.

Official website address:

https://filezilla-project.org/

Windows FTP client download address:

https://filezilla-project.org/download.php? type=client

Windows uploads files to Linux using ftp protocol

2.2 Download HTTP, HTTPS, FTP files via wget or curl

Take wget as an example, download a file

Install wget software

[root@zcwyou ~]# yum -y install wget

Download Logo.png

[root@zcwyou ~]# wget https://www.linuxrumen.com/wp-content/uploads/2018/11/Logo.png

3. Two Linux servers transfer files to each other

Usually, I use scp, which is convenient, simple, and fast.

Take CentOS 7.5 as an example:

3.1 Install opensh-clients first

[root@zcwyou ~]# yum -y install openssh-clients

3.2 Copy files locally to a remote server

Copy file/var/log/messages to remote server 10.10.10.10 directory/home/abc/

[root@zcwyou ~]# scp /var/log/messages root@10.10.10.10:/home/abc/

3.3 Copy files from remote server to local computer

Copy the file abc.txt from remote server 10.10.10.10 to native/tmp

[root@zcwyou ~]# scp root@10.10.10.10:/home/zcwyou/abc.txt /tmp

3.4 Copy directories locally to remote servers

Add option-r

Copy the local directory/var/log/to the directory/home/abc/on server 10.10.10

[root@zcwyou ~]# scp -r /var/log/ root@10.10.10.10:/home/abc/

3.5 Copy remote server directory to local

Copy remote server 10.10.10.10's/home/abc/to local directory/var/backup

[root@zcwyou ~]# scp -r root@10.10.10.10:/home/abc/ /var/backup

Enter the password for 10.10.10.10.

After reading the above, do you know how to upload files to Linux servers? If you still want to learn more skills or want to know more related content, welcome to pay attention to the industry information channel, thank you for reading!

Tags: File service server directory native method picture suite software content address more problem transfer helpless for this reason graphics client client Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi OPPO Reno Huawei macOS Apple