"Permissions are too open" for WSL

  git, github, windows, windows-subsystem-for-linux
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         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.

Source: Windows Questions

LEAVE A COMMENT