首页 > 其他 > 详细

ssh key 迁移新机器

时间:2020-01-18 09:25:08      阅读:145      评论:0      收藏:0      [点我收藏+]

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

ssh key 迁移新机器

原文:https://www.cnblogs.com/zpydbk/p/12208064.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!