ssh key 迁移新机器

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
[email protected]: 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

猜你喜欢

转载自www.cnblogs.com/zpydbk/p/12208064.html