您的位置:首页 > 其它

cygwin在windows8下 600 变660 解决方案

2014-04-23 00:00 323 查看
摘要: cygwin在windows8下 chmod 600 ~/.ssh/id_rsa 不能正确修改权限的解决方案

重装系统,把老的sshkey拷回来,发现权限不对,于是chmod 600之,发现权限并没有如期变成600而是变成了660,据说这是cygwin在windows下的bug

解决方法如下,先修属组,在修改权限

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

摘自
http://superuser.com/questions/397288/using-cygwin-in-windows-8-chmod-600-does-not-work-as-expected http://stackoverflow.com/questions/1556119/ssh-private-key-permissions-using-git-gui-or-ssh-keygen-are-too-open
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息