Public-key Cryptography / Asymmetric Encryption

Generate a public/private keypair

  1. Use ssh-keygen to generate a public/private keypair: ssh-keygen -t ed25519
  2. The keys are stored in ~./ssh as id_ed25519 and id_ed25519.pub

Trust the public key on OpenSSH Server

Add the contents of id_ed25519.pub to ./ssh/authorized_keys