SSH Private Key Permissions using Git GUI or ssh-keygen are too open

前端 未结 25 1794
说谎
说谎 2020-12-07 06:57

Recently I\'ve been unable to clone or push to github, and I\'m trying to find the root cause.

This is on windows

I have cygwin + git as well as msy

25条回答
  •  一整个雨季
    2020-12-07 07:39

    After upgrading my Cygwin installation to a version around February 2015 (1.7.34(0.285/5/3) 2015-02-04 12:14 x86_64 Cygwin), I suddenly ran into the UNPROTECTED PRIVATE KEY FILE warning.

    I fixed this problem after running the following command:

    setfacl -s u::rw-,g::---,o:--- ~/.ssh/id_rsa
    

    (another answer to another question gives more context)

提交回复
热议问题