Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page

Using obsutil on a Linux ECS to Access OBS over the Intranet

Updated on 2024-10-17 GMT+08:00

obsutil is a command line tool that can run Windows, macOS, and Linux operating systems. This section describes how to configure an intranet DNS server for a Huawei Cloud Linux ECS to access OBS over the intranet.

CAUTION:

You need to download obsutil over the Internet. Alternatively, you can download obsutil on a cloud server that can access the Internet and then transfer the downloaded obsutil to the current cloud server for installation.

Prerequisites

You have purchased at least one ECS.

Process

Figure 1 Process of using obsutil on a Linux ECS to access OBS over an intranet

Procedure

  1. Log in to a Linux ECS.

    1. Log in to Huawei Cloud and click Console.
    2. On the homepage of the console, choose Compute > Elastic Cloud Server.
    3. Select an ECS and log in to it.

      The login method varies depending on the authentication method set during the Linux ECS purchase. For details about how to log in, see Logging In to an ECS.

  2. Check whether the intranet DNS is configured on the Linux ECS.

    1. Log in to the Linux ECS and open the CLI.
    2. Run the cat /etc/resolv.conf command to check whether the IP address following nameserver is the intranet DNS address of the region where the current ECS resides.
      NOTE:

      Huawei Cloud provides different intranet DNS server addresses for different regions. For details, see What Are the Private DNS Servers Provided by the Huawei Cloud DNS Service?

      • If no, go to 3.
      • If yes, go to 5.

  3. Configure the intranet DNS.

    Change the DNS server address of the ECS to the intranet DNS provided by Huawei Cloud. To do this, you can change the DNS address of the VPC subnet or change the local DNS configuration.

    • Method 1: Change the DNS server address of the VPC subnet.

      Locate the VPC where the ECS resides and change the DNS server address of the VPC subnet to the intranet DNS address. This way, ECSs in the VPC can use the intranet DNS for resolution and thereby you can access OBS over the Huawei Cloud intranet. For details, see Modifying a Subnet.

    • Method 2: Modify the local DNS settings.

      In this example, an ECS running 64-bit CentOS 6.x is used as an example to describe how to modify the local DNS settings.

      1. Open the CLI.
      2. Run the following command to open the /etc/resolv.conf file:
        vi /etc/resolv.conf
      3. Press i to enter the editing mode. In the /etc/resolv.conf file, add the intranet DNS server address before the existing DNS server address in the following format:
        nameserver Intranet DNS server address
        NOTE:
        • Intranet DNS server address: Select the intranet DNS server address based on the region where the ECS resides. For details, see What Are the Private DNS Servers Provided by the Huawei Cloud DNS Service?
        • The IP address of the new DNS server must come before all existing DNS IP addresses.
        • DNS servers are selected in the sequence of nameserver. A new DNS server is selected only when the previous DNS server is faulty, unavailable, or cannot resolve the requested domain name. Therefore, if you want to switch to access over a public network, change the DNS address in the first line to a public one or add a new public DNS address before the existing DNS addresses.
      4. Press Esc and enter :wq! to save the settings and close the file.
        NOTE:

        The modified DNS server address takes effect immediately after you save the modifications made to the /etc/resolv.conf file.

  4. Check whether OBS is accessed over the intranet.

    For details, see How Do I Determine Whether OBS Is Accessed from the Intranet?

  5. Download an obsutil that matches the ECS.

    1. Click in the upper left corner and select the desired region and project.
    2. Click and choose Compute > Elastic Cloud Server.

      On the Elastic Cloud Server page, you can check your purchased ECS and its specifications. If the ECS flavor name starts with k, the ECS has the Arm architecture and you should download the obsutil package for Linux Arm (64-bit); if the flavor name does not start with k, you should download the obsutil package for Linux AMD (64-bit) and Linux x86 (64-bit). For more information about ECS specifications, see ECS Types.

    3. For details about the latest version of obsutil and download link, see Download and Installation.

  6. Configure obsutil.

    Before using, you need to configure the interconnection between obsutil and OBS. Parameters include OBS endpoints and access keys (AK and SK). For details, see Initializing Configurations.

    NOTE:

    The OBS endpoint needs to be chosen according to the region where the ECS resides. For details about OBS regions and endpoints, see Regions and Endpoints.

  7. Use obsutil to access OBS.

    After obsutil is successfully configured, you can access OBS over the intranet from the Linux ECS to perform basic data access operations and configure other advanced settings.

    Common operations include:

    For details about how to use obsutil, see Object Storage Service Tools Guide (obsutil).

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback