I had a problem with my mac where I couldn't save any kind of file on the disk anymore. I had to reboot OSX lion and reset the permissions on files and acls.
But now when I want to commit a repository I get the following error from ssh:
Permissions 0777 for '/Users/username/.ssh/id_rsa' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
What permissions levels should i give to the id_rsa file?
for Win10 need move your key to user's home dir for linuxlike os you need to chmod to 700 like or 600 etc.
what worked for me
I am using VPC on EC2 and was getting the same error messages. I noticed I was using the public DNS. I changed that to the private DNS and vola!! it worked...
Using Cygwin in Windows 8.1, there is a command need to be run:
Then the solution posted here can be applied, 400 or 600 is OK.
Ref: http://vineetgupta.com/blog/cygwin-permissions-bug-on-windows-8
0600 is what mine is set at (and it's working)
AFAIK the values are:
700 for the hidden directory ".ssh" where key file is located
600 for the keyfile "id_rsa"