Skip to main content
28 events
when toggle format what by license comment
Oct 3, 2023 at 13:52 comment added Ygautomo Try to add ONLY respective users that run the command, and set file permission as Read Only and uncheck all other option. It's works on my Computer Windows 10
Sep 23, 2023 at 5:58 comment added reim Curiously enough, when removing the default inherited system and administrator group permissions on Windows 11, they reappear once the file is moved again - at least, this is happening with a file from the WSL mount.
Jun 22, 2023 at 14:09 comment added Devashish Prasad Worked for me. Thanks.
May 2, 2023 at 7:05 comment added serup You had me at disable inheritance
Jan 16, 2023 at 9:17 comment added Junaid Anwar cp <path to your key> ~/.ssh/<name of your key> works for me
Sep 1, 2022 at 16:26 comment added Richard Willian THAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANKS
Jun 12, 2022 at 17:13 comment added endolith Just disabling inheritance and deleting permissions for all but myself fixed it
Apr 13, 2022 at 16:51 comment added prinkpan Such a simple solution by @J.Gwinner works beautifully by moving file to OneDrive location.
Mar 13, 2022 at 22:06 comment added Sovattha Sok It worked for me. I had to pay attention to selecting the correct username (I have many on my PC). As a side note, ticking "full control" is not needed, I managed to use my SSH key with just "read" access.
Mar 7, 2022 at 22:10 comment added J. Gwinner Moving the .pem file to a OneDrive location worked perfectly for me - easy, and now I have a cloud backup :) It does do all of the above permissions changes. I'd add this as a new answer, as it seems so simple, but would rather comment and upvote yours so my little answer isn't lost in the shuffle.
Jan 8, 2022 at 9:36 comment added iBug I'm amazed to see this answer receive its first downvote after nearly 4 years. Nice try, downvoter.
Aug 21, 2021 at 0:57 comment added bikeman868 This did not work for me. After setting the permissions as described I get the exact same error, so I also tried sudo chmod 400 id_rsa and it still gives the same error. This is such a stupid check. At this point I am the only person who can access the file but ssh-keygen still refuses to work just because of how it retrieves the file permissions.
Mar 17, 2021 at 21:40 comment added nshathish worked for me in window 10
Jan 21, 2021 at 22:27 comment added Issung Wasn't working for me on windows, was the same error still after setting these permissions, both trying with windows GUI and with chmod, then I just did sudo and all was fine
Nov 7, 2020 at 19:10 comment added Draex_ Works for me on Windows 10. When I typed in "Owner", it didn't work. When I typed in my e-mail address, it started working.
Oct 16, 2020 at 6:22 comment added Toolkit Doesn't work on Windows 10
May 13, 2020 at 21:17 comment added Buntel I still get: Permissions 0770 are too open
Feb 11, 2020 at 23:26 comment added Sergio Prats Thanks a lot! This worked while everything on the internet had failed me until now.
Nov 29, 2019 at 12:15 comment added Kuronashi Stupid, i don't have the permessions to do that..-_-
Feb 10, 2019 at 21:17 comment added stackers How do you "change the owner to yourself", what do I type in? It doesn't accept my username or name or windows live email or anything.
Dec 20, 2018 at 20:57 comment added Liam Mitchell Why is this so difficult on windows, can someone just add a --ignore-stupid-rule command option?
Sep 4, 2018 at 8:25 comment added Aaron Bramson Actually, I did that and it still complains that 0777 permissions are too open.
Aug 14, 2018 at 9:53 comment added iBug @DylanB Why'd you put credentials on a removable drive? (In fact, that tab is available only on NTFS filesystems - you can format your drive into NTFS easily).
Aug 14, 2018 at 8:11 comment added Dylan B IF the key file is on Thumb Drive / Flash disk, that Security tab is not available!
Jul 28, 2018 at 15:10 comment added atreyu I'd just like to add 1) This method works on my Windows 10 (10.0.17134.191) box w/Cygwin ver CYGWIN_NT-10.0-WOW 2.3.1(0.291/5/3) 2015-11-14 12:42 and ssh ver OpenSSH_for_Windows_7.6p1, LibreSSL 2.6.4, and 2) Thanks! @iBug!
S Jul 15, 2018 at 23:53 history suggested MSC CC BY-SA 4.0
Added screenshot for clarity.
Jul 15, 2018 at 23:03 review Suggested edits
S Jul 15, 2018 at 23:53
Feb 18, 2018 at 8:57 history answered iBug CC BY-SA 3.0