zoukankan      html  css  js  c++  java
  • [密钥权限过大错误]ssh “permissions are too open” error

    I had a problem with my mac where I couldn't save any kind of file on the disk anymore. I had to reboot OSX lion and reset the permissions on files and acls.

    But now when I want to commit a repository I get the following error from ssh:

    Permissions 0777 for '/Users/username/.ssh/id_rsa' are too open.
    It is recommended that your private key files are NOT accessible by others.
    This private key will be ignored.
    What permissions levels should i give to the id_rsa file?

    别人那边拷贝过来的密钥,很多时候无法直接登录ssh,会报错permissions are too open。
    这个时候需要修改id_rsa的权限,一般修改为600就好。

    Keys need to be only readable by you:

    chmod 400 ~/.ssh/id_rsa
    600 appears to be fine as well (in fact better in most cases, because you don't need to change file permissions to edit it).

  • 相关阅读:
    Django
    闭包&装饰器
    Python学习 Day 062
    Python学习 Day 059
    Python学习 Day 058
    Python生成器
    第一类对象(函数),闭包及迭代器
    进阶函数的学习
    对函数的初步了解
    python文件操作
  • 原文地址:https://www.cnblogs.com/everfight/p/ssh_permission.html
Copyright © 2011-2022 走看看