Properties2
| Type | Practice |
| Note created | Feb 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
- Generate the pair of keys using
ssh-keygen -t ed25519 -C "[email protected]". - Select all the default options; leave the passphrase empty.
- If not there already, add this snippet to
~/.ssh/configto configure all connections in SSH:
Host *
AddKeysToAgent yes
IdentityFile ~/.ssh/id_ed25519
- Add the identity to the SSH agent:
ssh-add ~/.ssh/id_ed25519