Public-key Cryptography / Asymmetric Encryption
Generate a public/private keypair
- Use ssh-keygen to generate a public/private keypair:
ssh-keygen -t ed25519
- The keys are stored in ~./ssh as
id_ed25519
andid_ed25519.pub
Trust the public key on OpenSSH Server
Add the contents of id_ed25519.pub
to ./ssh/authorized_keys