# SSH keys

> Add your public keys and push over SSH.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://git.docs.sypnia.com/access/ssh-keys/

For agents: SSH: host ssh.git.sypnia.com, user git; keys ed25519 (recommended), ecdsa, rsa ≥ 3072; security keys (sk-ssh-ed25519) supported. Add in Account → SSH keys or `npx @sypnia/git keys add ~/.ssh/id_ed25519.pub`. Host key fingerprints published as DNSSEC-signed SSHFP records of ssh.git.sypnia.com (check with ssh -o VerifyHostKeyDNS=yes or dig SSHFP); self-hosted: git keys host-records prints them. A key belongs to one person; it can also sign commits.

```bash
ssh-keygen -t ed25519 -C "you@example.com"
npx @sypnia/git keys add ~/.ssh/id_ed25519.pub
git clone git@ssh.git.sypnia.com:laespiga/web.git
```

- **Key types**: Ed25519 (recommended), ECDSA, RSA of 3072 bits or more, and hardware security keys (`sk-ssh-ed25519`).
- **One key, one person.** The same public key cannot be added to two accounts.
- **The server's fingerprints** are published as SSHFP records in DNS, signed with DNSSEC, so you can check the host the first time you connect ([below](#check-the-server-the-first-time)).
- The same key can **sign your commits** ([Security](https://git.docs.sypnia.com/security)).

## Check the server the first time

The first time you connect, SSH shows the server's fingerprint and asks whether to trust it. The true fingerprints of `ssh.git.sypnia.com` are its SSHFP records in DNS, in the `sypnia.com` zone that Sypnia Domains signs with DNSSEC. Let SSH compare them for you:

```bash
ssh -o VerifyHostKeyDNS=yes -T git@ssh.git.sypnia.com
```

**You should see:**`Matching host key fingerprint found in DNS.` and a greeting with your username. SSH saves the key, and the question never comes back.

To read the records yourself, `dig SSHFP ssh.git.sypnia.com +dnssec` lists one record per key type, with the `ad` flag that says the answer is signed. To always check, add `VerifyHostKeyDNS yes` under `Host ssh.git.sypnia.com` in `~/.ssh/config`. A self-hosted engine publishes its own: `npx @sypnia/git keys host-records` prints the SSHFP records to add to your zone.
