SSH keys let you log in to a Linux VPS without relying only on a password. They are safer for regular server administration and are useful when more than one admin needs access.

An SSH key has two parts: the private key stays on your own computer, and the public key is added to the VPS or VPS panel. Never upload or paste the private key into the panel.

Keep a working password or VPS console route until you have tested the key.

  1. Create a key on Linux, macOS, or Windows Terminal:
    ssh-keygen -t ed25519

    Press Enter to accept the default save location unless you already manage multiple keys. Use a passphrase if the key is stored on a shared computer.

  2. If you use PuTTY on Windows, create the key in PuTTYgen. Select EdDSA or RSA, click Generate, move the mouse until the key is created, then save the private .ppk file on your own computer.
  3. Copy the public key only. With PuTTYgen, copy the public key from the box at the top. With ssh-keygen, the public key is normally the file ending in .pub.
  4. Open your VPS service from the client area.
  5. Open the VPS control panel.
  6. Click SSH Keys.

    VPS panel SSH Keys menu

  7. Add the public key, give it a clear name, then save it.
  8. Use the key when connecting by SSH. Only disable password logins after confirming the key works.

If you generated a PuTTY .ppk key, use it in PuTTY under Connection > SSH > Auth > Credentials. OpenSSH keys can be used directly with Windows Terminal, Linux, macOS, and Termius.

For the SSH connection steps, use How to connect to a Linux VPS with SSH.

  • 0 utilizatori au considerat informația utilă
Răspunsul a fost util?

Articole similare

What is a VPS and how can one be used for Game Hosting?

A VPS, or Virtual Private Server, is a private slice of a larger physical server. You get your...

How to access your VPS

After your VPS has been created, you need to connect to it before you can install software,...

How to reboot, shut down, or start your VPS

The VPS control panel includes power controls for stopping, restarting, and starting your VPS...

How to use the VPS console or VNC

The VPS console, also called VNC, lets you view and control the VPS even when SSH or Remote...

How to reinstall or rebuild your VPS

Reinstalling a VPS replaces the current operating system with a fresh install. This is useful...