ssh私钥权限过于开放导致无效

git clone git@gitee.com:scclounee/am335x-linux.git
Cloning into 'am335x-linux'...
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0664 for '/home/xxx/.ssh/id_ed25519' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "/home/xxx/.ssh/id_ed25519": bad permissions
git@gitee.com: Permission denied (publickey).
fatal: Could not read from remote repository.

 

解决方法:

chmod 600 /home/xxx/.ssh/id_ed25519

 

posted on 2024-09-23 10:33  dingyun  阅读(99)  评论(0)    收藏  举报

导航