VMRack
Home
Products
Solutions
Pricing
Support
Referral Program
Articles
VPS Tutorial Center
How to Quickly Detect CN2 GIA Lines?
No Speed Drop During Peak Hours: How Does CN2 VPS Actually Perform During Network Congestion?
CN2 GIA vs. AS9929 vs. CMIN2: Which is the Stablest Outbound Route in 2026?
The Importance of GIA VPS in Cross-Border Operations
Guide to Selecting US VPS Servers: The Advantages of Los Angeles Data Centers
Cost-Effective US Cloud Server Recommendation: Unveiling VMRack Los Angeles Node Performance
Why CN2 Line VPS is the Foundation for Stable Remote Desktop Connections?
Why is the US CN2 route crucial for multi-store management in cross-border e-commerce?
GIA Line vs. GT Line: Why GIA is the Top Choice for Stable Return Trips to China
Recommended high-performance CN2 VPS in 2026
What are the characteristics of CN2 GIA line VPS?
US Los Angeles CN2 GIA VPS Recommendation!
How is the latency of the US CN2 GIA server?
VMRack: A reliable CN2 GIA VPS - Recommended
A compilation of affordable and reliable US CN2 VPS promotional plans for 2026
Recommended High-Performance VPS CN2 Servers and GIA Line Identification Guide
VMRack premium VPS test across three networks
VMRack Triple-Network Platinum VPS Line Test
Troubleshooting and solutions for SSH connection failures to remote servers
How to apply for an SSL certificate using VMRack
GIA CN2 VPS Server Basic Environment Configuration and System Acceleration Tutorial
What to do if the cloud server can be pinged but cannot be connected via SSH?
What to do if SSH connection fails?
How to quickly apply for a free SSL certificate
What are the methods for remotely connecting to a server via SSH?
Recommendations for useful SSH remote connection tools
A Roundup of SSH Remote Server Connection Tools
How to solve SSH connection failure?
Recommended US VPS for stable website hosting
What should I do if my SSH connection to the host gets stuck and doesn't move?
VMRack US-based cheap, high-bandwidth VPS recommendations
Recommended good US VPS with 9929 lines!
How to quickly resolve VPS ping issues
Recommended US-based unlimited traffic VPS!
The VPS can be pinged, but web pages cannot be opened.
Are cheap Windows US desktop computers worth buying?
VMRack US VPS Recommendation!
Recommendations for reliable US native IP VPS!
Which is better, CMIN2 or CN2 GIA?
What to do if I can't connect to my VPS via SSH?
How is the CMIN2 line?
What are the advantages of a Los Angeles CN2 VPS?
  1. Articles
  2. /
  3. VPS Tutorial Center
  4. /
  5. What to do if the cloud server can be pinged but cannot be connected via SSH?

What to do if the cloud server can be pinged but cannot be connected via SSH?

VMRack
VMRack
2026-06-12
This article addresses the issue of being able to ping successfully but failing to connect via SSH, providing standard solutions from multiple perspectives, including security group rules, system services, and configuration files.

When a cloud server experiences a situation where it can be pinged but SSH cannot connect, it indicates that the network layer (ICMP protocol) is working normally and the server is powered on and running. Such failures are usually caused by blocked transport layer ports, system internal security policy interceptions, or SSH service configuration anomalies.

As a cloud infrastructure service provider built on high-performance AMD processors and relying on a self-built Los Angeles data center, VMRack is always committed to providing users with a smooth experience comparable to dedicated servers. To help you precisely locate the issue when encountering such remote obstacles, we have specially compiled this highly practical technical guide. Through the following three core steps, you can clear the mist step by step and completely resolve this troubling issue.

1. Check Cloud Platform Security Groups and Local Port Connectivity

After ruling out physical network failures, the first step is to confirm whether external security policies are blocking TCP port 22. This is one of the main reasons why the client prompts that SSH cannot connect.

Users need to log in to the VMRack console and check the security group (Security Group) or network ACL rules belonging to the instance. Ping operations use the ICMP protocol, while the SSH protocol relies on TCP port 22. If the inbound rule of the security group does not allow TCP port 22 to pass, all remote connection requests will be dropped at the network boundary. During testing, the source IP can be temporarily set to 0.0.0.0/0 to verify whether it is blocked by the security group.

VMRack firewall

At the same time, it is necessary to confirm whether there are outbound port restrictions in the local network environment. Some corporate intranets or public networks block non-standard web ports. Users can execute telnet Server_Public_IP 22 in the local terminal. If a connection timeout is displayed, it is recommended to switch to an external network environment such as a mobile hotspot for cross-testing to rule out the impact of local network policies.

2. Check Server SSH Service Status and System Firewall

If the external network policy configuration is correct, you need to enter the operating system to check the service running status and internal firewall policies. VMRack provides 24/7 uninterrupted power supply and intelligent monitoring to ensure the stability of the infrastructure, but internal system configurations still require manual compliance.

When the external ports are unobstructed, failures where SSH cannot connect due to internal system reasons are also relatively common. The virtualization environment optimized based on high-performance AMD processors by VMRack provides continuous computing power at the underlying level. However, if the SSH daemon (sshd) inside the operating system stops running due to memory overflow, configuration conflicts, or policy interception, the client's connection request will also be directly rejected by the system.

ssh-running

Since conventional remote channels cannot establish a connection at this time, users need to use the VNC Remote Connection (WebTerminal) function provided by the VMRack console to log in to the server. After logging into the system, execute systemctl status sshd (for Debian/Ubuntu systems, it is systemctl status ssh) to view the process status. If the service is stopped, execute systemctl start sshd to restart it. Meanwhile, run ss -ntlp | grep ssh to confirm whether the actual port listened to by the service has been modified.

In addition, it is necessary to check the blocking rules of the system's built-in firewall. firewalld in CentOS or ufw in Ubuntu may restrict port 22 by default. O&M personnel can temporarily turn off the firewall by running systemctl stop firewalld or ufw disable for connectivity testing. If the connection is restored after closing, a permanent rule allowing TCP port 22 to pass must be appended to the firewall.

3. Check SSH Configuration File and Analyze Security Logs

When both the network and ports are clear, but the connection request is still rejected by the server, the cause of the failure is usually concentrated in the system security configuration file (sshd_config) or the IP access blacklist.

Open the /etc/ssh/sshd_config configuration file via the VNC terminal and check the following key security parameters:

  1. PermitRootLogin: If you need to log in as the root user, this item must be configured as yes.

  2. PasswordAuthentication: If password authentication is used, ensure this item is not set to no.

If any modifications are made to this file, you must execute systemctl restart sshd to restart the service for the changes to take effect.

In addition, the internal /etc/hosts.deny file of the system and third-party security tools (such as fail2ban) may blacklist the user's local public IP due to multiple password errors. O&M personnel can view the system security logs (/var/log/secure for CentOS, /var/log/auth.log for Ubuntu) to obtain specific rejection reasons and error codes, and make targeted adjustments accordingly.

Conclusion

Aiming at the failure where the cloud server can be pinged but SSH cannot connect, O&M personnel should follow a standard troubleshooting process from the outside in. First, confirm whether the cloud platform security group opens TCP port 22; second, verify the internal SSH service status and system firewall policy through the VNC console; finally, check the access permission configuration of the sshd_config file.

Related articles
  • Troubleshooting and solutions for SSH connection failures to remote servers
  • What are the methods for remotely connecting to a server via SSH?
  • What to do if SSH connection fails?
  • Cost-Effective US Cloud Server Recommendation: Unveiling VMRack Los Angeles Node Performance
  • Guide to Selecting US VPS Servers: The Advantages of Los Angeles Data Centers
VMRack
  • Products
  • VPS Hosting
  • VPS Hosting
    Unmetered
  • Bare Metal
  • GPU Rental
  • CDN
    Public Beta
  • Custom CDN
  • Object Storage
    Public Beta
  • Transcoder
    Public Beta
  • Solutions
  • Bring Your Own IP (BYOIP)
  • Customized Server Solutions
  • Colocation Services
  • Resources
  • Pricing
  • Help Documentation
  • Articles
  • Developer Center
  • Referral Program
  • Contact
  • Company
  • About Us
  • Terms of Service
  • User Agreement
  • Privacy Policy
  • Service Level Agreement