This document describes how to use the FTP service to upload files from a local Linux computer to a CVM.
You have built the FTP service on CVM.
If the FTP service has already been installed on the local Linux computer, skip this step.
yum -y install ftp
If the following interface appears, the connection has been established successfully.
ftp <CVM IP address>
Run the following command to upload a local file to the CVM.
put local-file [remote-file]
For example, to upload the local
/home/1.txt file to the CVM, run the following command.
put /home/1.txt 1.txt
Run the following command to download a file from the CVM to a local directory.
get [remote-file] [local-file]
For example, to download the
A.txt file from the CVM to the local
/home directory, run the following command.
get A.txt /home/A.txt