The document uses a Lighthouse instance with CentOS 7.6 as an example to describe how to upload and download files via SCP.
NoteTo get started, ensure that you have configured the Lighthouse instance admin account and password. If you haven't set or forgot the password, please reset password.
Log in to the Lighthouse console and obtain the public IP of the target Lighthouse instance on Instances page.
scp Local file address Lighthouse instance account@Lighthouse instance public IP/domain name:Lighthouse instance file path
For example, you can run the following command to upload the local file /home/lnmp0.4.tar.gz
to the same directory of the Lighthouse instance whose public IP is 129.20.0.2
:
scp /home/Inmp0.4.tar.gz root@129.20.0.2:/home/Inmp0.4.tar.gz
scp Lighthouse instance account@Lighthouse instance public IP/domain name:Lighthouse instance file path Local file address
For example, you can run the following command to download the file /home/lnmp0.4.tar.gz
from the Lighthouse instance whose public IP is 129.20.0.2
to the same local directory:
scp root@129.20.0.2:/home/Inmp0.4.tar.gz /home/Inmp0.4.tar.gz
Was this page helpful?