Ping is blocked on OSS internal endpoints by design, for security reasons. A failed ping does not mean your Elastic Compute Service (ECS) instance cannot reach Object Storage Service (OSS). Use curl or telnet to verify connectivity instead.
Verify connectivity
Using curl
Run the following command to send an HTTP HEAD request to an object via the internal endpoint:
curl -I http://<bucket-name>.<oss-internal-endpoint>/<object-name>Replace the placeholders with your actual values:
| Placeholder | Description | Example |
|---|---|---|
<bucket-name> | Name of the bucket | my-bucket |
<oss-internal-endpoint> | Internal endpoint for the bucket's region | oss-cn-hangzhou-internal.aliyuncs.com |
<object-name> | Name of the object | sample.txt |
A successful connection returns HTTP/1.1 200 OK:
HTTP/1.1 200 OK
Server: AliyunOSS
...Using telnet
Run the following command to test TCP connectivity to port 80:
telnet <bucket-name>.<oss-internal-endpoint> 80A successful connection returns:
Trying 10.x.x.x...
Connected to <bucket-name>.<oss-internal-endpoint>.
Escape character is '^]'.If curl or telnet also fails
Check the following in order:
Confirm the ECS instance and OSS bucket are in the same region. Internal endpoints are only reachable from within the same region.
Confirm the internal endpoint is correct. Copy the endpoint directly from the OSS console to avoid typos. For a full list of internal endpoints by region, see Regions and endpoints.