git clone 或者git pull 时发现错误
客户端报错
sign_and_send_pubkey: signing failed: agent refused operation
Permission denied (publickey,keyboard-interactive).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
服务器端报错
Aug 21 12:00:34 sshd[247]: Connection closed by authenticating user git 192.168.118.30 port 56016 [preauth]
Aug 21 12:00:36 sshd[249]: Authentication refused: bad ownership or modes for directory /data/git/.ssh
Aug 21 12:00:36 sshd[249]: Authentication refused: bad ownership or modes for directory /data/git/.ssh
Aug 21 12:00:36 sshd[249]: Connection closed by authenticating user git 192.168.118.30 port 56020 [preauth]
尝试解决错误,各种重启,重装,依然报上述错误. . 索性不管,回家睡大觉.
第二天到单位, 它自愈了....