DewaVPS
Authentication

Quickstart

Quickstart

DewaVPS Authentication services help you securely access and manage your cloud resources. This includes managing SSH keys for secure instance login and API tokens for programmatic access to the DewaVPS platform.

All authentication settings are located under Key Management in the sidebar:

Key Management Menu

Managing SSH Keys

SSH keys provide a secure, passwordless way to connect to your instances.

Adding an SSH Key

  1. Navigate to Key ManagementSSH Keys.
  2. Click Create.
  3. Enter a name (e.g., My Laptop) and paste your public SSH key.
  4. Click Submit.

SSH Key Form

After adding, you can select this key when creating new instances to enable secure SSH access.

Generating an SSH Key

If you don't have an SSH key, generate one on your local machine:

ssh-keygen -t ed25519 -C "your_email@example.com"
cat ~/.ssh/id_ed25519.pub  # Copy this public key

Managing API Tokens

API tokens allow you to automate and integrate with the DewaVPS platform.

Creating an API Token

  1. Navigate to Key ManagementAPI Token.
  2. Click Create.
  3. Provide a name (e.g., CI/CD Pipeline), select a scope, and set an expiration date.
  4. Click Confirm.
  5. Copy the token immediately — it's only shown once!

API Token Form

Using Your API Token

curl -H "x-apikey: YOUR_TOKEN_HERE" https://api.dewavps.com/v1/instances

Available Scopes

ScopeDescription
superFull access to all resources
read_instanceRead-only access to instances
write_instanceRead and write access to instances
billingAccess to billing information
read_networkRead-only access to network resources
write_networkRead and write access to network resources

Next Steps

On this page