使用sourceTree时,配置好了sshkey,但是还是无法拉取和推送代码,一直报下方的错误:

git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin
Access denied
Access denied
Access denied
Access denied
Access denied
FATAL ERROR: Server sent disconnect message
type 2 (protocol error):
"Too many authentication failures for git"




fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.





完成时带有错误,见上文。

先确保sshkey设置正确,然后下图所示的地方,修改为OpenSSH.

source tree Access denied FATAL ERROR: Server sent disconnect message type 2 (protocol error) "Too_git