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
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
更多精彩