错误描述

当在github上添加公钥之后运行ssh -T git@github.com

提示错误:

sign_and_send_pubkey: signing failed: agent refused operation
Permission denied (publickey).

解决办法

eval "$(ssh-agent -s)"
ssh-add