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

前端 未结 25 1844
说谎
说谎 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:29

    There is a bug with cygwin's chmod, please refer to:

    https://superuser.com/questions/397288/using-cygwin-in-windows-8-chmod-600-does-not-work-as-expected

    chgrp -Rv Users ~/.ssh/* 
    chmod -vR 600 ~/.ssh/id_rsa
    

提交回复
热议问题