How sshbar lays out your SSH keys

Keys are how SSH logs you in without a password. This chapter explains the key pair itself, then how sshbar finds, shows, and creates them.

3.1 - THE BASICS

What an SSH key is

An SSH key is a pair of files:

PRIVATE KEY
id_ed25519

Secret. Stays on your Mac, always. Proves you are you.

PUBLIC KEY
id_ed25519.pub

Safe to share. This is the one you put on servers.

You add the public key to a server's ~/.ssh/authorized_keys; the matching private key on your Mac proves it's you, so you log in without typing a password. Keys normally live in ~/.ssh.

3.2 - THE LIST

How sshbar shows them

The SSH Keys section scans ~/.ssh, sub-folders included, and lists your keys, grouped by folder. It recognizes keys by content, not filename:

# a public key: first line starts with a key type
ssh-ed25519 …      ssh-rsa …      ecdsa-sha2-* …      sk-…

# a private key: first line is a PEM header
-----BEGIN … PRIVATE KEY-----

So config, known_hosts, and authorized_keys never show up in the list.

Each key shows a Public key and/or Private key row with a copy button, plus a type badge (ED25519, RSA, …).
Copying a private key marks the clipboard "concealed", so clipboard-history apps skip it.
Symlinks are followed; hidden files and anything over 1 MB are skipped.
3.3 - NEW KEYS

Adding a key

The + button in the SSH Keys section offers two modes:

Import

Paste a private key you received: a deploy key, an exported key. If it has no passphrase, the matching .pub is derived automatically.

Generate

Runs ssh-keygen for you: ED25519 (the default) or RSA (2048/3072/4096), an optional comment, and an optional passphrase.

Both modes write into ~/.ssh/sshbar/ with strict permissions: files 600 in a 700 folder. sshbar never touches your existing keys; it only writes inside its own folder.

AFTER GENERATING

Copy the public key and add it to the server's ~/.ssh/authorized_keys. That's what lets the server recognize you.

sshbar, a free macOS menu-bar app for SSH
Manual Download hello@sshbar.app