ssh key 迁移新机器

余生颓废 提交于 2020-01-18 02:24:01

Cloning into 'dakj_bird'...
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0755 for '/Users/zpy-cp/.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 "/Users/zpy-cp/.ssh/id_rsa": bad permissions
git@code.aliyun.com: Permission denied (publickey).
fatal: Could not read from remote repository.


权限问题
解决方法:
  chmod  -R 755 ~/.ssh/
  chmod -R 600 ~/.ssh/id_rsa

      chmod -R 600 /.ssh/id_rsa.pub

  chmod -R 644 ~/.ssh/known_hosts

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!