tencent cloud

Feedback

Uploading File from Linux or macOS to Lighthouse Instance via FTP

Last updated: 2022-05-12 12:24:13

    Overview

    This document describes how to use the FTP service to upload files from a local Linux or macOS computer to a Lighthouse instance.

    Prerequisites

    You have set up the FTP service in the Lighthouse instance.

    Directions

    Obtaining public IP

    Log in to the Lighthouse console and get the public IP of the target Lighthouse instance on the Instances page.

    Using FTP service on Linux

    1. Run the following command to install the FTP service.

      Note:

      If the FTP service has already been installed on the local Linux computer, skip this step.

      yum -y install ftp
      
    2. 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.

    Uploading and downloading file

    Run the following command to upload a local file to the Lighthouse instance:

    put local-file [remote-file]
    
    For example, to upload the local /home/1.txt file to the Lighthouse instance, run the following command:
    put /home/1.txt 1.txt
    

    Using FTP service on macOS

    1. Click in the bottom-left corner and select Go > Connect to Server on the menu bar in the top-right corner.
    2. In the Connect to Server window, enter ftp://Lighthouse instance IP address and click Connect as shown below:
    3. In the pop-up window, select Registered User, enter the FTP service username and password, and click Connect.
      If the following interface appears, the connection has been established successfully.

    Uploading and downloading file

    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.

    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support