Properties2
TypePractice
Note createdFeb 17, 2025

This note covers the basic steps to generate a new pair of authentication keys to be used in SSH, to be identified with GitHub, Google Cloud Platform or any other remote server.

Due to personal preference, this will generate a key with no passphrase. For any other configuration check the GitHub guide to do so

On a Linux or macOS machine:

  1. Generate the pair of keys using ssh-keygen -t ed25519 -C "example@example.com".
  2. Select all the default options; leave the passphrase empty.
  3. If not there already, add this snippet to ~/.ssh/config to configure all connections in SSH:
Host *
  AddKeysToAgent yes
  IdentityFile ~/.ssh/id_ed25519
  1. Add the identity to the SSH agent: ssh-add ~/.ssh/id_ed25519