2

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?

5
  • 1
    Can you be more clear about the problem? Running that command works just fine (the argument to -C is appended to the public key as expected). Commented Feb 2, 2023 at 1:25
  • the issue isn't the command. That command was used when creating the first key. To create a second one I'd need to modify the file name with a custom name. Which is the heart of the issue Commented Feb 2, 2023 at 1:39
  • 1
    This is the docs: linux.die.net/man/1/ssh-keygen . What you need is the first syntax: ssh-keygen -t ed25519 -f ~/.ssh/ed25519_customname -C "[email protected]" Commented Feb 2, 2023 at 1:52
  • stackoverflow.com/a/62973365/7976758 Found in stackoverflow.com/search?q=%5Bssh-keygen%5D+different+name Commented Feb 2, 2023 at 1:54
  • thanks @phd I'll spend sometime reading those docs and learning more about those flags Commented Feb 2, 2023 at 2:05

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.