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
Help Center/ Bare Metal Server/ FAQs/ Login FAQ/ What Do I Do If I Can't Log In to a Linux BMS?

What Do I Do If I Can't Log In to a Linux BMS?

Updated on 2024-08-02 GMT+08:00

If you cannot log in to a BMS using SSH, it is recommended that you log in to the BMS through the console.

Check Whether You Can Remotely Log In to the BMS Through the Console

If the SSH login fails, check whether you can remotely log in to the BMS through the management console.

  1. Log in to the management console.
  2. Under Computing, click Bare Metal Server.
  3. Locate the row that contains the target BMS and click Remote Login in the Operation column.
    After about one minute, the login page is displayed. Press Enter and enter username root and the password.
    NOTE:

    Learn about the preparations for logging in to a BMS.

If you are still unable to log in to the BMS, record the related BMS information and the time when the login failure occurred. Then, submit a service ticket. Contact Huawei Cloud technical support.

Check Network Connectivity

Check whether the EIP bound to the BMS can be pinged. If the EIP cannot be pinged, check whether the following rule has been added to the security group. If it is not, add it.

Protocol

Direction

Port Range

Source

ICMP

Inbound

All

0.0.0.0/0

Then, try to remotely log in to the BMS again.

Check Whether the Security Group Is Correctly Configured

Check whether port 22 of the security group is allowed. If it is not, add a security group rule to allow it.

Then, try to remotely log in to the BMS again.

Check Whether Non-System Disk Information Is Commented Out in the /etc/fstab File

  1. Log in to the BMS and run the following command to edit the /etc/fstab file:

    vi /etc/fstab

  2. Comment out the data disk configuration in the /etc/fstab file.

    The /etc/fstab file contains information about the file systems and storage devices automatically attached to the BMS when the BMS starts. The configuration information about data disks automatically attached to the BMS needs to be commented out. For example, the last row shown in Figure 1 is the data disk configuration to be commented out in the /etc/fstab file.

    Figure 1 Data disk configuration in the fstab file

After performing the preceding operations, restart the BMS and try to remotely connect to it.

Check the Port for Remotely Accessing the BMS

Check the BMS settings.
  1. Check whether the BMS sshd process is running.
  2. Check whether the BMS rejects access by the local PC.
    1. Log in to the BMS and run the following command:

      vi /etc/hosts.deny

    2. If the IP address of the local PC is contained in the file, the IP address is rejected. In such a case, delete the IP address from the file.
  3. Open the /etc/ssh/ssh_config file on the local PC and check the default login port. In addition, check whether the value of the port field (SSH-enabled port) in the /etc/ssh/sshd_config file of the BMS has been changed (the default port number is 22).

Then, try to remotely log in to the BMS again.

Check the CPU Load

Check whether the login failure is caused by high CPU usage. If yes, perform the following operations to reduce the CPU usage:

  • Stop some processes that are not used temporarily and try again.
  • You can also restart the BMS.

    The restart operation will stop the server and interrupt services. Exercise caution when performing this operation.

  • Reinstall the OS.

    Reinstalling the OS is a high-risk operation. Back up data before the reinstallation.

Then, try to remotely log in to the BMS again.

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