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
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

Basic Concepts

Updated on 2025-02-13 GMT+08:00

This section describes the basic concepts you need to understand before using CPH.

Servers

Servers are physical servers that provide cloud phones. You obtain cloud phones only after purchasing a server. To purchase a server and obtain the corresponding number of cloud phones, you only need to specify the server type, instance specifications, phone image, and required network configuration. For details, see Buying a Cloud Phone Server.

Quantity

Quantity refers to the number of cloud phones that can be virtualized from a server. For example, if Quantity is 60, you can have 60 cloud phones virtualized from a server.

Cloud Phone Images

Cloud phone images are OSs running on cloud phones, for example, Android. Only Android AOSP 7.1.1 is provided. In the future, Huawei EMUI will be provided. However, other OSs from the third-party vendors such as Xiaomi ROM and Apple iOS cannot be provided duo to commercial authorization and architecture inconsistency.

SSH Tunnels

An SSH tunnel is established between an SSH client and an SSH server to forward network data to a specified port for network communication. The SSH tunnel provides automatic encryption and decryption services to ensure data transmission security.

SSH tunnels support three port forwarding modes: local port forwarding, remote port forwarding, and dynamic port forwarding. The directions of local and remote port forwarding are opposite. Local port forwarding is used when accessing a cloud phone. This document focuses on the working principle of local port forwarding.

Assume that local host A1 is the SSH client and remote cloud host B1 is the SSH server. Log in to host B1 from the host A1 through SSH and specify different port forwarding options (-L, -R, and -D). Then the SSH tunnel between host A1 and host B1 is established and data can be forwarded among different ports.

  • Scenarios

    A service is running on the remote cloud server B1 and the port number is 2000. The local host A1 needs to access the service. Assume that the IP address of cloud server B1 is 122.x.x.x, and the access address of the service is http://122.x.x.x:2000.

  • Why is local port forwarding required?

    Generally, only port 22 is enabled on the firewall of the cloud server by default. To access port 2000, modify the firewall. To ensure security, configure the IP addresses that are allowed to access the firewall. However, the public IP address of the cloud server is usually dynamically allocated by the network provider. If the public IP address is changed, the firewall configuration needs to be frequently modified, causing unnecessary troubles.

  • What is local port forwarding?

    In local port forwarding, requests sent to the local port are forwarded to the destination port. In this way, the service on the destination port can be accessed. Use the -L option to specify the port to be forwarded. The syntax is as follows:

    ssh -L Local port: Destination address: Destination port

    Example:

    ssh -L 3000:targethost:2000 root@122.x.x.x
    In this example, after you log in to remote cloud server B1 from local host A1, the requests sent to port 3000 of local host A1 are forwarded to port 2000 of remote cloud server B1.

    As a result, the local host A1 can access services on the remote cloud server B1 by accessing http://122.x.x.x:2000.

  • Extended applications

    In the foregoing syntax, the destination address may also be an address of another host. For example, the destination address is a private IP address of the cloud phone, the local host A1 is the local device, and the remote cloud server B1 is the cloud phone server. To access the cloud phone, the command for establishing an SSH tunnel is:

    ssh -L Local port: Private IP address of the cloud phone: Destination port Username@Public IP address of the server

    In addition, -N and -f are common options for establishing an SSH tunnel.

    • -N: indicates that the SSH server is not connected after the SSH tunnel is established. -N and -f are usually used together.
    • -f: indicates that the SSH tunnel is running in the background.

ADB

ADB is a command line tool to bridge the communications between an Android device and a desktop computer. It is a unique application of the Android OS. You can use ADB commands to perform a variety of operations, such as installing and debugging apps.

NOTE:

For more information about ADB commands, see What Are Common ADB Commands? or visit https://developer.android.com/studio/command-line/adb.

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