Linux system uploads files to CVM via FTP
Last updated: 2020-03-26 11:01:47PDF
This article describes how to use the FTP service on the local machine of the Linux system to upload files from local to Cloud Virtual Machine.
Already in Cloud Virtual Machine Build the FTP Service .
Connect Cloud Virtual Machine
- Execute the following command to install ftp.
If the local machine of the Linux system already has ftp, installed, please skip this step and proceed to the next step.
yum -y install ftp
- Execute the following command to connect to Cloud Virtual Machine on your local machine and enter the user name and password for the FTP service as prompted by the interface.
IP address of ftp CVM
Enter the following interface to indicate that the connection is successful.
Execute the following command to upload the local file to Cloud Virtual Machine.
put local-file [remote-file]
For example, change the local file
/home/1.txt Upload to Cloud Virtual Machine.
put /home/1.txt 1.txt
Execute the following command to download the files in Cloud Virtual Machine to your local location.
get [remote-file] [local-file]
For example, the one in Cloud Virtual Machine
A.txt Download the file to the local
get A.txt /home/A.txt