当我尝试git clone时,sourcetree上的访问被拒绝

当我尝试git clone时,sourcetree上的访问被拒绝,git,github,ssh,Git,Github,Ssh,我使用sourcetree, 当我需要git克隆时,请尝试使用sourcetree。 我的urlssh://git@192.168.3.98:/mydirectory/111.git 但这不是有效的源路径/URL 我检查细节 Command: git -c diff.mnemonicprefix=false -c core.quotepath=false ls-remote ssh://git@192.168.3.98:/var/www/git.repos/git.src/blackeye/io

我使用sourcetree, 当我需要git克隆时,请尝试使用sourcetree。 我的url
ssh://git@192.168.3.98:/mydirectory/111.git

但这不是有效的源路径/URL 我检查细节

Command: git -c diff.mnemonicprefix=false -c core.quotepath=false ls-remote
ssh://git@192.168.3.98:/var/www/git.repos/git.src/blackeye/iosplayer.git
Output: 
Error: 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.
我在谷歌上搜索。 它可能会出现ssh客户端配置问题,并设置mercurial和设置git

我设置了SSH客户端配置。 设置ssh密钥,ssh客户端putty plink

mercurial和git总是在更新


如何解决此问题?

至少检查远程服务器是否对您进行身份验证:

ssh -Tv git@192.168.3.9
也就是说:您的
~/.ssh/id\u rsa.pub
公钥是否在远程服务器端发布(在
~git/.ssh/authorized\u keys
中)

您的私钥是否有相关联的密码短语

还要检查远程服务器上是否存在
/mydirectory/111.git
:这是一个绝对路径(与
git@...:mydirectory/111.git
,这意味着
~git/mydirectory/111.git
)的可能重复项