On Windows Embedded 8 Industry Pro, with git 1.9, I tried to generate SSH keys following https://help.github.com/articles/generating-ssh-keys. The key is generated correctly, and I added it to my keys.
在Windows嵌入式8行业Pro中,在git 1.9中,我尝试使用https://help.github.com/articles/generating-ssh-keys来生成SSH密钥。密钥生成正确,我将它添加到我的密钥中。
Then when I try to check the generated key with ssh -T git@github.com, I receive the message:
然后,当我尝试用ssh - tgit@github.com检查生成的密钥时,我收到了以下信息:
Permissions 0644 for 'pathtothekey' are too open.
The issue is that when I can't change permissions with chmod via git bash ! I also tried to change them via cygwin and cmd: the permissions are changed, but with ls -la via git bash, the permission is still 0644 for the key ! I also tried to regenerate the key and even to reinstall Git but without any success...
问题是,当我不能通过git bash更改chmod的权限时!我还试图通过cygwin和cmd来改变它们:权限被更改了,但是通过ls -la通过git bash,密钥的权限仍然是0644 !我还尝试重新生成密钥,甚至重新安装Git,但没有成功……
Has anyone had the same issue ? I use Git through batch scripts so this issue is really annoying...
有人有过同样的问题吗?我使用Git通过批处理脚本,所以这个问题真的很烦人……
1 个解决方案
#1
0
The key needs to be shown only to you, that's what the warning suggests. Try this:
关键需要向你展示,这是警告的建议。试试这个:
chmod 600 ~/.ssh/id_rsa
#1
0
The key needs to be shown only to you, that's what the warning suggests. Try this:
关键需要向你展示,这是警告的建议。试试这个:
chmod 600 ~/.ssh/id_rsa