SSH keys let you log in to a Linux VPS without relying only on a password. They are safer for long-term server access and are useful for administrators who connect often.

An SSH key has two parts: a private key that stays on your computer, and a public key that can be added to the VPS or VPS panel.

Never paste or upload your private key. Keep a working password or console route until you have tested the key.

Create an SSH key

On Linux, macOS, or modern Windows Terminal, you can create a key with:

ssh-keygen -t ed25519

Press Enter to accept the default save location unless you already manage multiple keys.

Use a passphrase if the key will be stored on a device used by other people.

Add the public key

  1. Open your VPS service from the client area.
  2. Open the VPS control panel.
  3. Click SSH Keys.

    VPS panel SSH Keys menu

  4. Add the public key, not the private key.
  5. The public key usually ends in .pub.
  6. Save the key, then use it when connecting by SSH.

Only disable password logins after confirming SSH key login works.

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

  • 0 Kasutajad peavad seda kasulikuks
Kas see vastus oli kasulik?

Seotud artiklid

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 gives you direct screen access to the virtual server. It is useful when normal...

How to reinstall or rebuild your VPS

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