---
title: "SSH Keys: Secure Passwordless Login to Your VPS"
description: "**In short**An SSH key lets you log in to your machine without a password, and it is far more secure than one. You create a key pair on your device (public and private), paste the public key in this tab,…"
url: "https://www.hyyat.com/en/knowledgebase/vps-ssh-keys-secure-login/"
updated: "2026-11-19"
category: VPS control panels / Hyyat VPS Control Panel
---

# SSH Keys: Secure Passwordless Login to Your VPS

**In short**An SSH key lets you log in to your machine without a password, and it is far more secure than one. You create a key pair on your device (public and private), paste the public key in this tab, and it is added to your machine so login uses the private key alone. The private key stays with you and is never shared.

A password can be guessed or leaked. **SSH keys** are a stronger solution: a pair of keys, a **public** one you put on the server and a **private** one that stays on your device alone. No one gets in without the private key, so you enjoy secure login with no password typing.

![The SSH keys tab with a field to paste the public key and an add button](https://www.hyyat.com/wp-content/uploads/2026/11/vpspanel-ssh-ui-en.webp)

## First: create the key pair on your device

On your device (Windows, Mac or Linux) open the terminal and run the key-generation command; it creates two files: the private key and the public key (ending in .pub). Open the **.pub** file and copy its full content.

 The **private** key is your secret and must never be shared with anyone. The **public** key (.pub) is the only thing you paste into the panel.

## Second: add the public key in the panel

- Open the **SSH keys** tab in the control panel.
- Paste the **public key** (it starts with ssh-ed25519 or ssh-rsa) into the field.
- Click **Add key** — it is added to the root account instantly.

After that you log in to your machine over SSH with the private key and no password typing.

### Key or password?

Keys are best because they are far stronger than a [password](https://www.hyyat.com/en/knowledgebase/change-vps-root-password/). You can keep a password for emergencies through the [Console](https://www.hyyat.com/en/knowledgebase/vps-console-novnc-access/), but make daily login use keys.

## Summary

- An SSH key gives secure login with no password.
- Create the pair on your device, and paste only the public key in the panel.
- The private key is your secret — never share it.

Harden further by setting your machine [firewall](https://www.hyyat.com/en/knowledgebase/vps-firewall-manage-open-ports/).

## Frequently asked questions

   What is an SSH key?

A pair of keys: a public one you put on the server and a private one that stays on your device. It allows login with no password and is more secure because it is not guessed or typed each time.

   Which key do I paste in the panel?

The **public** key only (the file ending in .pub, starting with ssh-ed25519 or ssh-rsa). Never paste the private key.

   How do I create an SSH key?

Open the terminal on your device and run an SSH key-generation command; it creates two files, private and public. Copy the public (.pub) file content and paste it in the panel.

   Can I drop the password after adding the key?

You can for daily login. It is best to keep a password for emergencies through the console, while making regular login use keys.

   I lost my private key, what do I do?

Create a new pair on your device and add the new public key in the panel. A lost private key cannot be recovered.

   **Related guides**

- [Password: Change Your VPS Root Password Instantly](https://www.hyyat.com/en/knowledgebase/change-vps-root-password/)
- [Firewall: Control the Open Ports on Your VPS](https://www.hyyat.com/en/knowledgebase/vps-firewall-manage-open-ports/)
- [Console (noVNC): Reach Your VPS Screen from the Browser](https://www.hyyat.com/en/knowledgebase/vps-console-novnc-access/)

[All VPS panel guides →](https://www.hyyat.com/en/kb/hyyat-vps-control-panel/)

  **Need this service from Hyyat Host?**Our team handles it for you, with support replying to tickets within 24 hours at most.[Server Management](https://www.hyyat.com/en/server-management/)[dedicated server](https://www.hyyat.com/en/dedicated-server/)
