The document uses CVMs with CentOS 7.6 as an example to describe how to upload and download files via SCP.
You have purchased a Linux CVM.
Log in to CVM Console, navigate to the instance list page, and record the public IP of the CVM to which you want to upload files as shown below:
For example, if you want to upload the local file
scp local file address CVM account@CVM instance public IP/domain name: CVM file location
/home/lnmp0.4.tar.gzto the corresponding directory of the CVM whose public IP is
220.127.116.11, please execute the following command:
scp /home/Inmp0.4.tar.gz firstname.lastname@example.org:/home/Inmp0.4.tar.gz
For example, if you want to download the file
scp CVM account@CVM instance public IP/domain name: CVM file location local file address
/home/lnmp0.4.tar.gzfrom the CVM whose public IP is
18.104.22.168to the corresponding local directory, please execute the following command:
scp email@example.com:/home/Inmp0.4.tar.gz /home/Inmp0.4.tar.gz