How Can I Use FTP to Transfer Files Between a Local Linux Computer and a Linux ECS?
Scenarios
You want to use FTP on a local Linux computer to transfer files between the computer and a Linux ECS.
Prerequisites
You have enabled FTP on the target ECS. If you have not enabled FTP, check the following links to know how to set up an FTP site:
- An EIP has been bound to the ECS and access to port 21 is allowed in the inbound direction of the security group to which the ECS belongs.
- You have enabled FTP on the target ECS. If you have not enabled FTP, check the following links to know how to set up an FTP site:
- If the target ECS runs Windows, see Setting Up an FTP Site (Windows).
- If the target ECS runs Linux, see Setting Up an FTP Site (Linux).
Procedure
- Install FTP on the local Linux computer.
Take CentOS 7.6 as an example. Run the following command to install FTP:
yum -y install ftp
- Run the following command to access the ECS:
ftp EIP bound to the ECS
Enter the username and password as prompted for login.- Uploading files
Run the following command to upload local files to the ECS:
put Path in which files are stored on the local computer
For example, to upload the /home/test.txt file on the local Linux computer to the ECS, run the following command:
put /home/test.txt
- Downloading files
Run the following command to download files on the ECS to the local computer:
get Path in which the files are stored on the ECS Path in which the files are to be stored on the local computer
For example, to download the test.txt file on the ECS to the local Linux computer, run the following command:
get /home/test.txt
- Uploading files
File Upload/Data Transfer FAQs
- How Do I Upload Files to My ECS?
- How Can I Transfer Files from a Local Windows Computer to a Windows ECS?
- How Can I Use OBS to Transfer Files from a Local Windows Computer to a Windows ECS?
- How Can I Use WinSCP to Transfer Files from a Local Windows Computer to a Linux ECS?
- How Can I Transfer Files from a Local Mac to a Windows ECS?
- How Can I Use SCP to Transfer Files Between a Local Linux Computer and a Linux ECS?
- How Can I Use SFTP to Transfer Files Between a Local Linux Computer and a Linux ECS?
- How Can I Use FTP to Transfer Files from a Local Windows Computer to a Windows or Linux ECS?
- How Can I Use FTP to Transfer Files Between a Local Linux Computer and a Linux ECS?
- How Can I Transfer Data Between a Local Computer and a Windows ECS?
- What Should I Do If the Connection Between the Client and the Server Times Out When I Upload a File Using FTP?
- What Should I Do If Writing Data Failed When I Upload a File Using FTP?
- Why Does Internet Access to an ECS Deployed with FTP Fail?
- Why Am I Seeing an FTP Folder Error When I Open a Folder on an FTP Server?
- Why Do I Fail to Connect to a Linux ECS Using WinSCP?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbotmore