Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create multiple EdDSA SSH keys

I've read a bunch on how to do using rsa. Now, how can I create multiple ssh keys using EdDSA i.e. id_ed25519

  • I can't add the same existing key to multiple github accounts I own (key already in use)
  • While attempting to create a second key, I'm unable to write a custom name (like one does when using rsa) inside the script

ssh-keygen -t ed25519_customname -C "[email protected]"

docs don't cover that either

How can I create multiple EdDSA SSH keys?

like image 424
Jonca33 Avatar asked Jun 06 '26 21:06

Jonca33


1 Answers

Do not specify the custom name under the -t tag.

Simply run ssh-keygen -t ed25519 Then, you will be prompted to enter the file path. The default, of course, is ~/.ssh/id_ed25519.

Instead, enter the path with your custom file name, for example ~/.ssh/my_custom_id_ed25519.

Now, you will have another key created and can be added to another GitHub account.

like image 134
Poom Chan Avatar answered Jun 08 '26 11:06

Poom Chan