Knowledge base

LINUX

Add an SSH public key to your Linux VPS

Use an Ed25519 or RSA public key for Linux access while keeping your private key on your own device.

4 minute read

1Know which half of the key to share

An SSH key pair has a public key and a private key. The public key can be installed on the server to identify an authorized login key. The private key proves that you hold that identity and should stay on your device. VPSDZ asks only for the public key. Never paste a private key, a seed phrase or an account token into the SSH key field.

2Use the supported public-key format

The configurator accepts one OpenSSH public key beginning with ssh-ed25519 or ssh-rsa, followed by its encoded key data. Ed25519 keys use a fixed key size. RSA keys must be between 2048 and 8192 bits. The application checks the format and key contents before accepting an order, removes optional comments and records its SHA256 fingerprint.

3Choose key authentication before payment

Open a Linux plan, set the hostname and SSH port, then select SSH public key. Paste the complete public-key line and continue to the payment page. Your configuration is retained when you go back to edit it or sign in with your account token. Selecting a Windows plan uses Administrator password access instead.

4Connect with the matching private key

After activation, open the Access tab for the actual host, port and login user. Use your SSH client with the private key matching the submitted public key. If you use several keys, select the appropriate identity in your client. Verify the server host identity before accepting a new SSH host. The account token opens the VPSDZ portal; it does not replace the SSH private key.

5Keep recovery and reinstallation in mind

Keep a protected copy of your own private key. VPSDZ cannot reconstruct it from the public key. You can manage authorized keys inside your Linux environment. Reinstalling the server applies the public key supplied at checkout, so retain that key or review your access arrangements before a reinstall.

Need a hand?

Open a request and include your service reference.

Contact support