ssh key new machine migration

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.


Permission problem
Solution:
  the chmod 755 -R & lt ~ / .ssh /
  the chmod 600 -R & lt ~ / .ssh / id_rsa

      chmod -R 600 /.ssh/id_rsa.pub

  chmod -R 644 ~/.ssh/known_hosts

Guess you like

Origin www.cnblogs.com/zpydbk/p/12208064.html