Help & DocumentationCloud Virtual MachineOps GuideUpload FileLinux system uploads files to CVM via FTP

Linux system uploads files to CVM via FTP

Last updated: 2020-03-26 11:01:47

PDF

Operation scene

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.

prerequisite

Already in Cloud Virtual Machine Build the FTP Service .

Operation step

Connect Cloud Virtual Machine

  1. 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
  1. 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.

Upload files

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

Download files

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 /home Directory.

get A.txt /home/A.txt