1. root@vscode:~/.ssh# git push -u origin master
    2. Warning: Permanently added 'codeup.aliyun.com' (RSA) to the list of known hosts.
    3. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    4. @ WARNING: UNPROTECTED PRIVATE KEY FILE! @
    5. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    6. Permissions 0644 for '/root/.ssh/id_rsa' are too open.
    7. It is required that your private key files are NOT accessible by others.
    8. This private key will be ignored.
    9. Load key "/root/.ssh/id_rsa": bad permissions
    10. git@codeup.aliyun.com: Permission denied (publickey).
    11. fatal: Could not read from remote repository.
    12. Please make sure you have the correct access rights
    13. and the repository exists.

    解决办法

    • 只要把秘钥权限下降就好了:
      1. chmod -R 0600 /root/.ssh