Manage SSH Keys

SSH Access

Connect to your virtual machines using SSH. You can either specify a new SSH key or select an existing key when creating a VM cloudspace.

Adding an SSH Key

Step 1: Generate a Key (if needed)

Open a terminal and run:

Bash
Copy

Press Enter to accept the default location (~/.ssh/id_ed25519).

Step 2: Copy Your Public Key

Bash
Copy

Copy the entire output, which looks like:

Copy

Step 3: Add to Dashboard

  1. Navigate to SSH Keys in the sidebar or in the Create VM Cloudspace menu

  2. Click Add SSH Key

  3. Enter a name (e.g., my-ssh-key)

    1. SSH Key names must be kebab-case this-is-kebab-case
  4. Paste your public key

  5. Click Add Key

Connecting to a VM

Find Your VM's IP Address

  1. Go to your VM Cloudspace Overview page
  2. Locate the Virtual Machines section
  3. Find the IP address for your VM under "Public IP Address" section of overview

Connect via SSH

Use the SSH command shown on the VM card:

Bash
Copy

Example:

Bash
Copy

First Connection

On your first connection, you'll see a fingerprint verification prompt:

Copy

Type yes to continue.

Default Usernames

OS ImageUsername
Ubuntu 24.04ubuntu

Using a Specific Key

If you have multiple SSH keys, specify which one to use:

Bash
Copy

SSH Config (Optional)

Simplify connections by adding an entry to ~/.ssh/config:

Copy

Then connect with:

Bash
Copy

Troubleshooting

Permission Denied

Cause: Wrong SSH key or key not added to Rackspace Spot.

Fix:

  1. Verify the correct key is uploaded in SSH Keys
  2. Use -i to specify the correct private key
  3. Check file permissions: chmod 600 ~/.ssh/id_ed25519

Connection Timeout

Cause: VM not ready or network issue.

Fix:

  1. Check VM status on the Overview page (should show an IP address)
  2. Wait for VM to finish provisioning
  3. Verify your network allows outbound SSH (port 22)

Host Key Verification Failed

Cause: VM was recreated with a new host key.

Fix:

Bash
Copy

Then reconnect.

Security Best Practices

PracticeDescription
Use Ed25519 keysMore secure than RSA
Protect private keysNever share your private key
Use SSH configAvoid typing IPs repeatedly
Rotate keys periodicallyUpdate keys every 6-12 months

Next Steps

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard