Skip to main content
Servers Are Up
Virtual Datacenter
PricingFree Tools
Sign inBrowse catalog
Servers Are Up
Virtual Datacenter
PricingFree Tools
Sign inBrowse catalog

Loading…

Servers Are Up

Your apps, automation and data on hardware we own. Build a private stack with predictable capacity and access through your dashboard, API or SSH.

SLA with service creditsOwned hardwareUS-based

Make room for your next idea

Explore the capacity, apps and access options that fit your workload. Check current availability and your total before you buy.

Sign up freeView Pricing

Products

  • Linux VPS
  • Windows VPS
  • Cloud & SaaS Services
  • Cloud Storage (Azure)
  • Virtual Datacenter
  • AI & Agent Hosting
  • Containers
  • Instant Apps
  • Software Platforms
  • Network builder
  • Game Servers
  • Free Game Servers
  • Pricing

Resources

  • Free Network Tools
  • 2026 Pricing Benchmark
  • Live SVG Badges
  • Latency & Speed Test
  • Guides & Tutorials
  • Documentation
  • API Reference
  • MCP Server
  • CLI & SDKs
  • OpenAPI & llms.txt
  • Use Cases
  • Free Migration
  • Uptime & Reliability
  • Datacenter
  • System Status
  • Network
  • Provider Comparisons Hub
  • Compare Providers

Company

  • About Us
  • Enterprise
  • Security Architecture
  • Trust Center
  • Blog
  • FAQ
  • Compliance
  • Startup Program
  • Open-Source Sponsorship
  • Press & Media Kit
  • Referral Program
  • Help Center
  • Contact Us
© Servers Are Up
TermsPrivacySLARefund PolicyDPAAcceptable Use
Service information
Docs
  • Documentation Hub
  • Technical Knowledge Library
    Runbooks & 187 Blueprints
  • Choose a Product
    VMs, Containers & Cloud
  • First Linux Server
    SSH, Firewall & Apps
  • Windows Server 2025
    BYOL & Remote Desktop
  • Remote Access
  • Troubleshooting
  • FAQ
  • All Product Guides
    29 Step-by-Step Guides
  • Cloud & SaaS Catalog
    112 Cloud & SaaS Offerings
  • Azure Cloud Storage
    Hot/Cool/Archive & WORM
  • Resource Manager & RBAC
    Groups, Tags & Locks
  • Multi-Model Cloud DB
    JSONB, SQL & pgvector
  • Cloud Identity & ZTNA
    OIDC, SCIM & PIM
  • Key Vault & KMS
    Secrets & Envelope Keys
  • Cloud SIEM, SOAR & DLP
    Posture & Threat Response
  • API Gateway & Cloud DNS
    Edge WAF & DNS Zones
  • Serverless, Workflows & IoT
    Functions, Queues & DAGs
  • SaaS, Governance & Vault
    Budgets & Off-Host GRS
  • Linux Systems & Kernel
    SSH, UFW, sysctl & OOM
  • Self-Hosted Apps & Stacks
    Caddy, Nextcloud & Auth
  • Build Web Apps with AI
  • Next.js and React
  • TypeScript and Node.js
  • npm and Tooling
  • Data and APIs
  • Deploy and Operate
  • Tutorials
  • Infrastructure
  • Automation & Regions
  • API Overview
  • API v1 Reference
    Endpoints & 23 Scopes
  • MCP Server
    129 AI Agent Tools
  • Swagger / OpenAPI 3.1
  • API Playground
  • Versioning & Sunset
  • API Token Security
    Authentication & Tokens
  • Instances API
    Compute Resources
  • Networking API
    Networks & Ports
  • Storage API Availability
    Volumes & Backups
  • Webhooks & Events
    Event Notifications
  • Rate Limits & Best Practices
    Throttling & Retries
  • sau CLI Reference
    34 Commands (v0.2)
  • Browser Web CLI
  • SDKs
  • Infrastructure as Code
    Terraform & Ansible
  • Code Examples
  • CLI & SDK Guides
  • Security Guides
  • Security at a Glance
  • Zero Trust Architecture
  • Live Trust Center
  • Compliance
Need help?

Loading documentation...

Documentation/security

SSH Key Management

Best practices for generating, rotating, and securing SSH keys for instance access.

Beginner
8 min
Updated 2026-03-11

Deploy Ready-to-Run Infrastructure in Seconds

Linux VMs from $6/mo · Pooled Virtual Datacenters from $12/mo · Use code WELCOME20 for 20% off your first order.

Browse ServersView Pricing

SSH keys provide secure, password-less authentication to your instances. This guide covers generating, adding, rotating, and securing your SSH keys.

Generating an SSH Key

We recommend Ed25519 keys for the best security and performance:

# Generate an Ed25519 key
ssh-keygen -t ed25519 -C "your-email@example.com"

# Or RSA (4096-bit minimum)
ssh-keygen -t rsa -b 4096 -C "your-email@example.com"

When prompted, save to the default location (~/.ssh/id_ed25519) and set a strong passphrase.

Adding a Key to Your Account

Dashboard

  1. Go to Access > SSH keys
  2. Click Add SSH key
  3. Paste your public key (~/.ssh/id_ed25519.pub)
  4. Give it a descriptive name and click Add key

CLI

Add/remove keys via Access > SSH keys in the dashboard, or POST/DELETE /api/v1/ssh-keys (see API docs). The sau CLI supports ssh-keys list only.

API

curl -X POST https://serversareup.com/api/v1/ssh-keys \
  -H "Authorization: Bearer $SAU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "work-laptop",
    "publicKey": "ssh-ed25519 AAAA... your-email@example.com"
  }'

Using SSH Keys with Instances

Every active key in your account (or your organization's keys, for an organization's server) is installed for the sauuser account when a Linux server is built or rebuilt. A key you add later reaches a server that is already running only if you add it there yourself (see Key Rotation below).

What you can create today: Buy any product marked Available in checkout and it is set up automatically; products marked Coming soon have no checkout yet. The sau CLI does not create instances.

Turn on public SSH on the server's page, then copy the command from its How to connect card. It looks like this:

ssh sauuser@SERVER_ADDRESS -p SSH_PORT

Root cannot sign in. Run administrative commands with sudo, or start a root shell with sudo -i.

Disabling Password Authentication

After verifying SSH key access works, you can turn off password sign-in. The console's terminal signs in with the server's password, so it stops working after this; use SSH from your own computer instead.

# On your server. sshd keeps the first value it reads, and it reads sshd_config.d in name order,
# so this file wins over the one that turned passwords on when the server was built.
echo 'PasswordAuthentication no' | sudo tee /etc/ssh/sshd_config.d/00-no-passwords.conf
sudo sshd -t && sudo systemctl reload ssh
sudo sshd -T | grep -i '^passwordauthentication'

The last line should print passwordauthentication no. To turn passwords back on, delete that file and reload ssh again.

Key Rotation

Rotate SSH keys periodically or whenever a team member leaves:

  1. Generate a new key pair
  2. Add the new public key to your account and instances
  3. Verify you can connect with the new key
  4. Remove the old key from your account and instances
  5. Delete the old private key from your local machine

Remove keys via Access > SSH keys or DELETE /api/v1/ssh-keys/{id} (see API docs). The sau CLI supports ssh-keys list only.

To add a key to a server that is already running, or drop one from it:

ssh sauuser@SERVER_ADDRESS -p SSH_PORT 'mkdir -p -m 700 ~/.ssh && cat >> ~/.ssh/authorized_keys' < ~/.ssh/new_key.pub
ssh sauuser@SERVER_ADDRESS -p SSH_PORT "sed -i '/old-key-comment/d' ~/.ssh/authorized_keys"

Best Practices

Practice Why
Use Ed25519 keys Stronger security, smaller keys, faster
Set a passphrase Protects the private key if your device is compromised
Use ssh-agent Avoid typing your passphrase repeatedly
One key per device Revoke a single device without affecting others
Never share private keys The private key should never leave the device that generated it
Disable password auth Eliminates brute-force password attacks
Rotate keys regularly Reduces risk from compromised keys

Troubleshooting

Problem Solution
Permission denied Check that the correct key is being offered: ssh -v root@IP
Key not accepted Verify the public key format is correct when adding to your account
Agent forwarding issues Run ssh-add to add your key to the agent

Next Steps

  • Two-Factor Authentication
  • API Token Security
  • Firewall Configuration

Related Articles

Two-Factor Authentication

Read more

API Token Security

Read more

Firewall Configuration

Read more

Frequently Asked Questions

What does the SSH Key Management documentation guide cover?
Best practices for generating, rotating, and securing SSH keys for instance access. It is rated beginner difficulty (8 min) and applies to Servers Are Up infrastructure and workflows.
Can I manage or automate these steps through the Servers Are Up dashboard, REST API v1, or MCP server?
Yes. Every Servers Are Up server includes browser-based SSH, WebRDP, and VNC console access in the dashboard, plus programmatic control via the REST API v1 (/api/v1) and hosted Model Context Protocol server (/api/mcp/v1) using a scoped Personal Access Token.

Need hands-on help with SSH Key Management?

Every Servers Are Up virtual machine and container includes an integrated HTML5 browser-based SSH, RDP, and VNC console in your dashboard, default-off inbound firewall rules with per-IP allow-lists, and full programmatic control via REST API v1 and Model Context Protocol (MCP). Explore our Virtual Datacenter Plans or reach out to Servers Are Up Support.

Was this article helpful?

On this page

Generating an SSH KeyAdding a Key to Your AccountDashboardCLIAPIUsing SSH Keys with InstancesDisabling Password AuthenticationKey RotationBest PracticesTroubleshootingNext Steps
Need Live Commands?

Open Aria in Wide Engineering Mode for distro-specific commands, compose tweaks, and isolated environment troubleshooting.

Knowledge Library