How Linux uses SSH to transfer files to FTP space for backup

Source: Internet
Author: User
Tags ftp gz file ssh

In the Linux system, the file can be transferred to the FPT space through SSH, some important data backup, then how to achieve the transfer of the file? Small series to give you a detailed introduction to Linux using SSH to transfer files to the FTP space method.


Suppose the directory to be backed up is/home/wwwroot/aaa/, and the IP for the remote FTP space is

 1. Access to the/home/wwwroot/directory


 2. Then compress the AAA directory into the tar.gz file package aaa.tar.gz

Tar CFZ aaa.tar.gz AAA

 3. Link FTP


Enter the FTP user name, return, enter the FTP password, link successful, you should see the FTP

 4. Upload just the aaa.tar.gz

Put aaa.tar.gz

Until the feedback says success.

Note: If you use the FTP command to prompt This command does not exist

CentOS can directly execute the following command, the installation of the FTP service is generally OK:

Yum Install FTP

By the introduction of this article you must have learned how to use SSH to transfer files to FPT space, a total of four steps, it is simple to back up important files.

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.