How Linux uses ssh to transfer files to FTP space

  
                

In Linux, you can use ssh to transfer files to the FPT space and back up some important data. How do you implement file transfer? Xiaobian gives you a detailed introduction to how Linux uses ssh to transfer files to FTP space.

Step:

is assumed to be backed up to the directory /home /wwwroot /aaa /, IP remote FTP space is 55.44.33.22

1. into /home/wwwroot/directory

cd /home/wwwroot

2. Then compress the aaa directory to the tar.gz package aaa.tar.gz

tar cfz aaa .tar.gz aaa

3.Link FTP

ftp 55.44.33.22

Enter, then enter the FTP username, press Enter, enter the FTP password, after the link is successful , should see ftp"

4. Upload just aaa.tar.gz

put aaa.tar.gz

until the feedback says success.

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

centOS can directly execute the following command, the installation of ftp service is generally OK:

yum install ftp

Through the introduction of this article, you must have already understood how to use ssh to transfer files to the FPT space. A total of four steps are required. Backing up important files is as simple as that.

Copyright © Windows knowledge All Rights Reserved