@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0777 for '/mnt/c/Users/ninja/.ssh/id_ed25519' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Background info: I just got set up with WSL and I started connecting git with github. I'm new to this so please answer with simplicity if possible.
I'm following the documentation on this site and I was able to create the SSH key, but when I want to add it to the ssh-agent and follow those instructions (ssh-add ~/.ssh/id_ed25519) I get this error (the one above). Any solutions to this?
I'm running Ubuntu on Windows by using WSL.
/etc/wsl.confwith those lines,wsl --shutdown, and then you should be able tochmodthe private key on the Windows drive. – NotTheDr01ds Sep 17 '21 at 12:56/etc/wsl.confthat you created is in the wrong directory -- Usesudo nano /etc/wsl.confto put it in the right directory (or whatever editor you prefer). – NotTheDr01ds Sep 17 '21 at 16:07/home/userid/.ssh/...(where it would normally be under Linux). Did you happen to try to change your WSL home directory to be the same as your Windows home? – NotTheDr01ds Sep 17 '21 at 22:20sudo nano /etc/wsl.confand was able to later runchmod 600on the SSH keys. After this everything ended up working as intended. – Aladdin Sep 18 '21 at 00:07