DewaVPS

Quickstart

Quickstart

DewaVPS Key Management helps you securely access and manage your cloud resources. This includes SSH keys for secure instance login, API tokens for programmatic access, and SSL certificates for secure communications.

All key management settings are located under Key Management in the sidebar:

  • SSH Keys β€” Passwordless authentication for instances
  • API Token β€” Programmatic access to DewaVPS API
  • SSL Certificates β€” Secure your domains with SSL/TLS certificates

SSH Keys

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

Adding an SSH Key

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

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

API Tokens

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

Creating an API Token

  1. Navigate to Key Management β†’ API 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!

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

SSL Certificates

SSL certificates enable HTTPS for your domains, securing communication between clients and your servers.

Creating a Self-Signed Certificate

  1. Navigate to Key Management β†’ SSL Certificates.
  2. Click Create Certificate.
  3. Enter a Name (friendly identifier) and Common Name (your domain).
  4. Click Add Certificate.

SSL Certificate Form

The system generates a self-signed certificate valid for 10 years.

Certificate Details

After creation, you can view:

FieldDescription
NameFriendly name for the certificate
Common NameDomain name the certificate is issued for
Certificate IssuerPT DEWAWEB (self-signed)
TypeSelf Signed
Valid fromCertificate creation date
Valid untilCertificate expiration date

Next Steps

On this page