SSH keys
SSH / Git setup
To push and pull code from Drupal.org's git repositories, you'll need ssh keys to be added to your account.
See:
Quick start (TL/DR)
Generate a new ssh keypair
To generate a new ssh keypair, run the following on your command line.
You will see something like:
Generating public/private ed25519 key pair.
Enter file in which to save the key (/home/user/.ssh/id_ed25519):
Decide if you are going to specify a passphrase or not and respond accordingly.
Add your public ssh key to Drupal.org
- Go to https://git.drupalcode.org/-/user_settings/ssh_keys
- Click "Add new key", at the top right of the "SSH Keys" table.

- Copy the contents of your ~/.ssh/id_ed25519.pub file into the 'key' field.
- Optionally remove expiration date.
- Click "Add key"
Test your key
Test that you can authenticate against drupal.org with:
Or if you saved your key somewhere other than the default location, you can specify the identity file with:
You should get a success message, for example: