DewaVPS

SSH Keys

Adding an SSH key allows you to securely access your DewaVPS instances without using passwords.

Prerequisites

Before adding an SSH key, you need to generate one on your local machine:

# Generate a new ED25519 SSH key (recommended)
ssh-keygen -t ed25519 -C "your_email@example.com"

# Or generate an RSA key (if ED25519 is not supported)
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

Press Enter to accept the default file location, then copy your public key:

cat ~/.ssh/id_ed25519.pub
# or: cat ~/.ssh/id_rsa.pub

Steps to Add an SSH Key

  1. Log in to your DewaVPS control panel.

  2. Navigate to Key Management β†’ SSH Keys section.

    SSH Keys List

  3. Click the Create button.

    Create SSH Key Form

  4. Enter a descriptive name for the key (e.g., My Laptop).

  5. Paste your public SSH key into the Keys field.

    Filled SSH Key Form

  6. Click Submit to register the key.

Your SSH key is now ready to be used for secure login to your instances. You can expand the key entry to view its details:

SSH Key Expanded

Using SSH Keys with Instances

When creating a new instance, you can select your SSH key from the dropdown in the SSH Key field. This will automatically configure the instance to accept your SSH key for authentication.

After the instance is created, you can SSH into it without a password:

ssh root@your_instance_ip

Deleting an SSH Key

  1. Navigate to Key Management β†’ SSH Keys.
  2. Expand the key entry by clicking on it.
  3. Click the Delete button.
  4. Confirm the deletion in the dialog.

Delete SSH Key

Note: Deleting an SSH key does not remove it from instances that were already created with that key. You would need to manually remove the key from those instances.

On this page