1 、git添加公钥后报错sign_and_send_pubkey: signing failed: agent refused operation的解决办法 在服务器添加完公钥后报错
sign_and_send_pubkey: signing failed: agent refused operation Permission denied (publickey).
解决办法:这个时候我们只要执行下
eval "$(ssh-agent -s)"
ssh-add
就可以了
2、解决 id_rsa 权限不够
Permissions 0644 for '/home/robin/.ssh/id_rsa' are too open、
It is recommended that your private key files are NOT accessible by others、
This private key will be ignored、
bad permissions: ignore key: /home/robin/.ssh/id_rsa
解决办法:这个时候我们只要执行下
chmod 755 ~/.ssh/
chmod 600 ~/.ssh/id_rsa ~/.ssh/id_rsa.pub
chmod 644 ~/.ssh/known_hosts