git :could not open a connection ..Could not read from remote repository. 解决办法

git 在连接外面的服务器时可能出现could not open a connection to your authentication agent问题的解决和Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights


解决办法要重新绑定密钥。(之前我是有两个密钥,默认是选择另一个密钥,连接不到对应的ssh)

1.ssh-agent bash

2.ssh-add  ~/.ssh/id_rso_mokee