SupportConsole
Tickets
Navigation

Getting Started
Registration and Account SetupFirst Order: From Registration to Power-OnConsole Navigation and Common Entry PointsGetting Started: Terms and Concepts
Cloud Server Operations
Connection and Login: SSH Key, Password, VNC / noVNCUnable to Connect and Self-Service Outage TroubleshootingPower On, Shutdown, and RestartSystem Reinstallation, Public Images, and Custom ISOSnapshots and BackupsDisk Configuration and ResizingBandwidth, Traffic, and PortsIP AddressesMigration, Cloning, and Changing Data CentersCreation, Deployment, and DeliverySuspension, Deletion, and RecoveryPerformance AnomaliesCommon Console Error ReferenceUsage Limits and Common QuestionsHow to Manually Configure IPv6 in Nube CloudHow to Access Nube Cloud Virtual Machines Using SSH KeysQuotas, Credit Line, and Balance
Bare Metal Servers
Bare Metal Server (Dedicated Server / Bare Metal) RentalBare Metal Delivery and Rack InstallationBare Metal Customization and ColocationBare Metal Cancellation, Reclamation, and RefundsPioneer Program
Network, IP & Routes
Network Route Types: International Lite, International Optimized, and China OptimizedSelf-Service Network Troubleshooting: Unreachable, Packet Loss, Latency, and JitterHome Broadband IPs and Residential Broadband: Activation and TrialIP Prefix Leasing, Announcements, ASN, and RPKI RequestsChanging Network Lines, Replacing IPs, and Adjusting RoutesPort Blocking and GFW Blocking: IP Replacement, Port 25, and UnblockingTest IPs, Looking Glass, and Paid TestingCommon Network IssuesHong Kong Anti-DDoS China-Optimized Service Quota GuideWhat's the Difference Between International Lite and International Optimized?DDoS Protection and China Optimized Quota
DDoS
CDN Activation, Configuration, and MigrationCDN Plans, Renewal, and Traffic Rules
AI API
Model List, Capabilities, and AvailabilityError-Code Troubleshooting: 400, 403, 429, 503, and Thinking BlocksRate Limits, Concurrency, and Quota RulesBilling and Usage: Token Accounting, Caching, and Billing DisputesAI API Integration GuideModel Technical Notes: Deployment, Quantization, and Capabilities
Support/
Service & Products

Connection and Login: SSH Key, Password, VNC / noVNC

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.

I. Comparing the three login methods

MethodUse caseRequirements
SSH KeyDaily administration and automation (recommended)Generate a key pair locally and upload the public key to the platform
Password loginTemporary access or when no key is configuredA valid username and password in the system; SSH must allow password authentication
VNC / noVNCWhen 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.

II. SSH Key login

1. Generate a key pair

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

  • Private key: ~/.ssh/id_ed25519
  • Public key: ~/.ssh/id_ed25519.pub

The public key may be shared; the private key must remain strictly confidential. Set file permissions:

chmod 600 ~/.ssh/id_ed25519

2. Choose a key type

TypeCharacteristics
ssh-rsaGood compatibility, longer key, average performance
ecdsa-sha2-nistp256Shorter key and higher efficiency
ssh-ed25519High security, shortest key, best performance (recommended)

3. Upload the public key to the platform

Method 1:

  1. Click the avatar in the upper-right corner
  2. Select “User” → “SSH Key”
  3. Add → Add public key

Method 2:

  1. Sign in to the Console
  2. “Deploy” → “Optional Configuration Order”
  3. “Install” → “Add public key”

4. Inject the public key during system installation

When creating or reinstalling a Cloud Server, you can choose to inject the SSH Key automatically and log in with it immediately after installation.

III. Troubleshooting SSH Key login (common issues)

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:

ErrorDetails
Copied the private keyYou copied id_ed25519; copy id_ed25519.pub instead
Extra spaces or line breaksLeading/trailing spaces or line breaks were included when pasting
Incomplete contentThe public key was truncated
Changed the key but did not wait for synchronizationAfter updating, wait 1–2 minutes for configuration synchronization

Steps:

  1. Copy the complete public key from ~/.ssh/id_ed25519.pub.
  2. Update the SSH Key in the Console.
  3. Wait 1–2 minutes for synchronization.
  4. Try logging in again.

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

Locate the issue with verbose logs

ssh -vvv root@YOUR_IP

Look for Offering public key and Server accepts key in the log:

  • The server explicitly rejects your public key → the platform's saved key does not match your local key.
  • No usable key is offered at all → the local key is not loaded (check ssh-add and the private key specified with -i).

IV. Password login

  • Whether a Cloud Server supports password login depends on the SSH service configuration inside the system (PasswordAuthentication).
  • If password authentication is disabled, enter through VNC, modify the SSH service configuration (sshd_config), and restart the SSH service.
  • Note: The password shown in the Console may differ from the actual system password (for example, a mismatch between the reinstall template and the displayed value). In that case, reinstall the system directly.

V. VNC / noVNC Console

How to enter: Console → VM → VM details → Open VNC / noVNC.

Typical uses:

SituationDetails
SSH unavailableEnter through VNC to inspect the network, firewall, and SSH configuration
System boot failureWatch boot logs and determine whether the system crashed
Forgotten passwordEnter the system and reset the password
Display differs from expectationFor 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).

VI. Quick answers to common questions

QuestionAnswer
Publickey failure when logging in with the private keyMost 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 KeyCheck whether a restart/synchronization was missed, or whether authorized_keys inside the system was not updated
VNC works but SSH does notNetwork-layer or SSH service issue, see Unable to Connect and Self-Service Outage Troubleshooting
VNC also failsThe 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

VII. Related articles

  • Self-service connection troubleshooting: Unable to Connect and Self-Service Outage Troubleshooting
  • System reinstallation: System Reinstallation, Public Images, and Custom ISO
  • Existing document: “How to Use SSH Key to Access a Cloud Server on Nube Cloud”