当前位置: 首页 > 工具软件 > Accessible > 使用案例 >

It is required that your private key files are NOT accessible by others

唐骏祥
2023-12-01

参考:https://blog.csdn.net/IBLiplus/article/details/102405792
It is required that your private key files are NOT accessible by others

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for '/root/.ssh/id_rsa' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "/root/.ssh/id_rsa": bad permissions
Permission denied (publickey).
fatal: Could not read from remote repository.
 
Please make sure you have the correct access rights
and the repository exists.

Solution
权限0644对于文件~/.ssh/id_rsa太开放了。

chmod 600 ~/.ssh/id_rsa ~/.ssh/id_rsa.pub
 类似资料:

相关阅读

相关文章

相关问答