SSH keys
Generate an Ed25519 key with ssh-keygen -t ed25519. Keep the private half on one machine and copy only the .pub file.
Use ssh-add -l to list the keys held by the agent.
When a host is reinstalled its host key changes; remove the old entry with ssh-keygen -R host after checking that the reinstall was expected.