tencent cloud


Uploading Files from Linux to a CVM Using FTP

Last updated: 2022-03-21 15:19:43


    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.


    Connecting to the CVM

    1. 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
    2. Run the following command to connect to the CVM and enter the FTP service username and password as prompted.

      ftp <CVM IP address>

    If the following interface appears, the connection has been established successfully.

    Uploading a file

    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

    Downloading a file

    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
    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