DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Carnato
Carnato

Posted on

How to solve id_ed25519 file

When I created the SSH key for the git then I face the error
when i running the command

ssh-add ~/.ssh/id_ed25519
Enter fullscreen mode Exit fullscreen mode

of id_ed25519 no such file found.

Solution

1.

change the file name id_rsa.
ssh-add ~/.ssh/id_rsa

2.

For copy the key we follow the given command
clip < ~/.ssh/id_rsa.pub

3.

At last one more command.
Just add Github fingerprint to known hosts this way:

ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts 
Enter fullscreen mode Exit fullscreen mode

then push the project
HAPPY CODING☺☺☺

Top comments (2)

Collapse
ccoveille profile image
Christophe Colombier

I don't know why you are facing an issue. I'm using id_ed25519 keys for more than a year, and using ssh-add when my agent expires or I reboot.

It simply works as intended

Collapse
carnato profile image
Carnato Author

Because when I try to create the ssh key then by mistake i run the ,this given below command by mistake

cmd :- git config --global commit.gpgsign true

  • then when I try to commit on my project then popup come and ask me Passphrase but i forget then for resolving this problem i goto .ssh file and delete all file then i can not get the id_ed25519.

and if you know anyother method then help me

🌚 Friends don't let friends browse without dark mode.

Sorry, it's true.