This article covers three ways to log in to a Cloud Server: SSH Key, password login, and the VNC/noVNC Console, plus the most common login failures.
| Method | Use case | Requirements |
|---|---|---|
| SSH Key | Daily administration and automation (recommended) | Generate a key pair locally and upload the public key to the platform |
| Password login | Temporary access or when no key is configured | A valid username and password in the system; SSH must allow password authentication |
| VNC / noVNC | When the system cannot be reached over the network (network issue, SSH misconfiguration, or firewall block) | Console access and the system account password |
Important: VNC is the last resort for troubleshooting. If VNC works but SSH does not, the problem is in the network layer or SSH configuration; if VNC also fails, the system itself may have failed to boot.
# macOS / Linux (ed25519 recommended)
ssh-keygen -t ed25519 -C "your-name"
# Prioritize compatibility (RSA 4096)
ssh-keygen -t rsa -b 4096 -C "your-name"
# ECDSA 521
ssh-keygen -t ecdsa -b 521 -C "your-name"
After generation:
~/.ssh/id_ed25519~/.ssh/id_ed25519.pubThe public key may be shared; the private key must remain strictly confidential. Set file permissions:
chmod 600 ~/.ssh/id_ed25519
| Type | Characteristics |
|---|---|
ssh-rsa | Good compatibility, longer key, average performance |
ecdsa-sha2-nistp256 | Shorter key and higher efficiency |
ssh-ed25519 | High security, shortest key, best performance (recommended) |
Method 1:
Method 2:
When creating or reinstalling a Cloud Server, you can choose to inject the SSH Key automatically and log in with it immediately after installation.
If the error is Permission denied (publickey), check in this order:
# 1. View the local public key
cat ~/.ssh/id_ed25519.pub
# 2. Compare it character by character with the public key saved in Console SSH Key management
Four common errors:
| Error | Details |
|---|---|
| Copied the private key | You copied id_ed25519; copy id_ed25519.pub instead |
| Extra spaces or line breaks | Leading/trailing spaces or line breaks were included when pasting |
| Incomplete content | The public key was truncated |
| Changed the key but did not wait for synchronization | After updating, wait 1–2 minutes for configuration synchronization |
Steps:
~/.ssh/id_ed25519.pub.Temporary solution: If the system has a password, log in with it first, then write the public key to the server manually:
mkdir -p ~/.ssh && chmod 700 ~/.ssh
echo "Paste your public key here" >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
ssh -vvv root@YOUR_IP
Look for Offering public key and Server accepts key in the log:
ssh-add and the private key specified with -i).PasswordAuthentication).sshd_config), and restart the SSH service.How to enter: Console → VM → VM details → Open VNC / noVNC.
Typical uses:
| Situation | Details |
|---|---|
| SSH unavailable | Enter through VNC to inspect the network, firewall, and SSH configuration |
| System boot failure | Watch boot logs and determine whether the system crashed |
| Forgotten password | Enter the system and reset the password |
| Display differs from expectation | For example, the Console shows Ubuntu but VNC shows Debian |
If the image shown in the interface differs from the actual system, the safest option is to reinstall the operating system (see
System Reinstallation, Public Images, and Custom ISO).
| Question | Answer |
|---|---|
| Publickey failure when logging in with the private key | Most likely the private key was uploaded or the public key is incomplete; upload the public key again and wait 1–2 minutes |
| Still cannot connect after changing the SSH Key | Check whether a restart/synchronization was missed, or whether authorized_keys inside the system was not updated |
| VNC works but SSH does not | Network-layer or SSH service issue, see Unable to Connect and Self-Service Outage Troubleshooting |
| VNC also fails | The system may have failed to boot; try restarting or reinstalling |
| What if port 22 is blocked? | See Port Blocking and Censorship |
| Can I log in with a password? | Depends on the system SSH configuration; the platform does not enforce it |
Unable to Connect and Self-Service Outage TroubleshootingSystem Reinstallation, Public Images, and Custom ISO