You can upload files from or download files to your local computer through Elastic Compute Service (ECS) console, without connecting to instances. This method also supports the file uploads and downloads for instances without a public IP address.
Take note of the following file size limits:
Upload a file: The file size limit is 500 MB.
Download a file: The file size limit is 500 MB for Linux instances and 100 MB for Windows instances.
Billing
Upload a file: This can be performed for free.
Download a file: This involves two types of fees:
The file needs to be temporarily stored in an Object Storage Service (OSS) bucket, so you are charged storage fees.
Once you download the file with the Temporary Download Link, you are charged data transfer fees.
Prerequisites
The ECS instance whose files you want to upload or download is in the Running state.
If you use a Resource Access Management (RAM) user, make sure the following permissions are granted to it:
AliyunOSSFullAccess
: management permissions on OSS.AliyunOOSFullAccess
: management permissions on CloudOps Orchestration Service (OOS).
Procedure
Perform the following steps to go to the feature page:
Go to ECS console - Instance.
In the top navigation bar, select the region and resource group of the resource that you want to manage.
On the Instance page, find the one where you want to upload or download files, and click its ID to go to the instance details page.
Choose
.
Upload a file from your local computer to an ECS instance
Click Upload/Download.
In the Send File pane, configure the parameters described in the following table and click Upload.
Parameter
Description
Type
Select Upload File to ECS Instance.
File
Required. Specify the file to upload and select I agree to store the file in the temporary OSS bucket that Alibaba Cloud provides.
Destination Path
Required. Specify an existing absolute path on the ECS instance to save the file. By default, the following paths are used:
Linux:
/root
.Windows:
C:\Users\Administrator\Documents
.
File Description
Specify a file description for easy identification.
User
Specify the user to which the file belongs.
NoteThis parameter is valid only for Linux instances.
User Group
Specify the user group to which the file belongs.
NoteThis parameter is valid only for Linux instances.
Permission
Configure permissions on the file. Configure this parameter in the same way as the chmod command.
Default value:
0644
, which indicates that the file owner has read and write permissions, while users in the same group and other users have only read permissions.NoteThis parameter is valid only for Linux instances.
Overwrite
Specify whether to overwrite the file that has the same name as the one you want to upload.
If you turn off this parameter and a file with the same name exists in the same path, the upload fails.
Timeout
Set the timeout period for the file sending task. If the task does not complete when the timeout period ends, the system forcefully stops the task.
Unit: seconds. Valid values: 10 to 86400. Default value: 60.
Wait for the file transfer to complete. Then, check whether the uploaded file is in the Destination Path on the instance.
To locate the uploaded file's directory and path:
Click the upload Task ID to access the task details.
Review the DestinationDir field in the Task Information section.
Check the Execution Steps and Results for the full file path.
The file path will be used when you download the file from the instance to your local computer.
Download a file from an ECS instance to your local computer
Click Upload/Download.
In the Send File pane, configure all the parameters described in the following table, and then click Download.
Parameter
Description
Type
Select Download File from ECS Instance.
File
The path of the file to download on the ECS instance. For example:
Linux:
/root/your_file.zip
.Windows:
C:\\Users\\Administrator\\your_file.zip
(Windows requires double backslashes).
OSS Bucket
Select an existing OSS bucket. If you do not have one, create a bucket first.
ImportantThe OSS bucket must be in the same region as the ECS instance.
When you download a file by using this feature, the file is first uploaded to the
/aliyun_download_file
directory in the selected bucket for subsequent download. After the download is complete, delete the file from the bucket to prevent additional costs. In case you forget to delete those files created during download tasks, configure an automatic deletion policy for the/aliyun_download_file
directory.After the Execution Status of the download task is Successful, click Temporary Download Link in the Actions column to copy the download link, paste the download link into your browser's address bar, and then press Enter to download the file.
NoteThe temporary download link is valid for 10 minutes.