All Products
Search
Document Center

Elastic Compute Service:Transfer files to an ECS instance with OSS

Last Updated:Jul 15, 2026

Transfer large files to an ECS instance, even without a public IP, by using OSS as an intermediary.

Overview

image

Two main steps:

  1. Upload the file to an OSS bucket in the same region as the ECS instance.

  2. Download the file from OSS to the ECS instance over the internal network.

Billing

  • Storing files in OSS incurs storage fees.

  • Uploading files to OSS incurs no data transfer fees.

  • Downloading files from OSS to an ECS instance in the same region over the internal network incurs no data transfer fees.

  • Uploading or downloading files incurs request fees.

See Billable items for OSS billing details.

Step 1: Upload the file to OSS

Upload the file to an OSS bucket in the same region as the ECS instance. You can use ossbrowser on your local computer.

Important

Transferring files of 10 GB or more with ossbrowser over a public network may fail. Use Multipart upload instead.

  1. Activate Object Storage Service.

  2. Install and log on to ossbrowser.

    See Install ossbrowser 2.0 and Log on to ossbrowser 2.0.

  3. Create a bucket.

    1. Click Create Bucket and configure the following parameters. Use the default values for other parameters.

      • Bucket Name: Enter a bucket name.

      • Region: Select Specific Region, then select the region of your ECS instance. See View instance information.

        Note

        The region cannot be changed after creation. Products in the same region can communicate over the internal network.

    2. Click Create.

  4. Upload the file to the bucket.

    1. Click the bucket you created.

    2. Click Upload and upload your file.

  5. Get the file's download URL.

    1. Find the uploaded file. In the Actions column, click image > Obtain URL.

    2. Click Generate, then click Copy URL.

Step 2: Download the file from OSS

Log on to your instance and download the file from OSS over the internal network.

  1. Convert the download URL to an internal network URL.

    The copied URL is a public network URL. Add -internal before .aliyuncs.com to convert it to an internal network URL. This avoids data transfer fees for instances in the same region.

    Note

    Example: https://****.oss-cn-hangzhou.aliyuncs.com/demo-1.0.jar?****** becomes https://****.oss-cn-hangzhou-internal.aliyuncs.com/demo-1.0.jar?******.

  2. Download the file to the instance over the internal network.

    Windows instance

    1. Connect to the Windows instance. See Connect to a Windows instance by using Workbench.

    2. Open a web browser on the instance and enter the internal network URL to download the file.

      You can also use ossbrowser or ossutil on your Windows instance. See Simple download.

    Linux instance

    1. Connect to the Linux instance. See Log on to a Linux instance using Workbench.

    2. Download the file. This example uses wget:

      wget -O <filename> '<file_internal_url>'

      Replace <filename> with the target filename and <file_internal_url> with the internal network URL. For example, to download https://****.oss-cn-hangzhou-internal.aliyuncs.com/demo-1.0.jar?****** and save it as demo.jar:

      wget -O demo.jar 'https://****.oss-cn-hangzhou-internal.aliyuncs.com/demo-1.0.jar?******'

(Optional) Step 3: Clean up resources

To avoid storage fees, delete the file from the OSS bucket after downloading it.

References

See What is Object Storage Service (OSS)?