# Public Key

*noun*

say it: **“PUB-lik kee”** **/ˈpʌblɪk ki/**

The half of a key pair you can share, like a padlock that only your own private key can open.

## What is a **public key**?

A **public key** is the half of a key pair you can give to anyone, like a padlock. A server keeps a copy, and only your private key fits it, so the server can tell it's really you without a password. It's safe to share; it can't open anything by itself.

```bash
cat ~/.ssh/id_ed25519.pub
# ssh-ed25519 AAAAC3Nza... sam@laptop
```

## In a sentence

- “It's safe to share a **public key**; it can't open anything by itself.”
- “Sam put her **public key** on the server with ssh-copy-id.”

Level: Journeyman · [More Operating System terms at this level](https://www.ask-codey.com/glossary?category=operating-system&level=3)

Updated: November 10, 2026

Source: https://www.ask-codey.com/glossary/public-key
