OpenSSH related stuff

Published 04-02-2020 00:00:00

Create a ed25519 SSH key

  • ECC: Elliptic Curve Cryptography is a family of algorithms (ECDSA, ed25519)
  • Curve25519: name of the elliptic curve
  • Ed25519: Name of the signature algorithm
$ ssh-keygen -a 100 -t ed25519 -b 521 -f ~/.ssh/id_ed25519.barbot.org -C "julien@barbot.org"

You can look at explainshell.com to understand each parameters.

Use this key for specific hosts:

$ cat .ssh/config
Host github.com
    IdentityFile ~/.ssh/id_ed25519.barbot.org