This document describes how to use the FTP service to upload files from a local Linux or macOS computer to a Lighthouse instance.
You have set up the FTP service in the Lighthouse instance.
Log in to the Lighthouse console and get the public IP of the target Lighthouse instance on the Instances page.
Run the following command to install the FTP service.
If the FTP service has already been installed on the local Linux computer, skip this step.
yum -y install ftp
Run the following command to connect to the Lighthouse instance and enter the FTP service username and password as prompted.
ftp Lighthouse instance IP address
If the following interface appears, the connection has been established successfully.
Run the following command to upload a local file to the Lighthouse instance:
For example, to upload the local
put local-file [remote-file]
/home/1.txtfile to the Lighthouse instance, run the following command:
put /home/1.txt 1.txt
Run the following command to download a file from the Lighthouse instance to a local directory.
For example, to download the
get [remote-file] [local-file]
A.txtfile from the Lighthouse instance to the local
/homedirectory, run the following command.
get A.txt /home/A.txt
ftp://Lighthouse instance IP addressand click Connect as shown below:
You can directly copy files to the FTP window in Finder to upload them.
To download files from the Lighthouse instance to your computer, you only need to copy desired files from the instance to the attached local disk.