【问题标题】:When I try git clone, occur Access denied on sourcetree当我尝试 git clone 时,在 sourcetree 上发生 Access denied
【发布时间】:2018-02-28 22:43:21
【问题描述】:

我使用源树, 当我需要 git clone 时,尝试使用 sourcetree。 我的网址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 总是更新

如何解决这个问题?

【问题讨论】:

标签: git github ssh


【解决方案1】:

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

ssh -Tv git@192.168.3.9

即:是你在远程服务器端发布的~/.ssh/id_rsa.pub公钥(在~git/.ssh/authorized_keys中)

您的私钥是否有与之关联的密码?

还要检查远程服务器上是否存在 /mydirectory/111.git:这是一个绝对路径(与 git@...:mydirectory/111.git 相反,这意味着 ~git/mydirectory/111.git

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-04-06
    • 1970-01-01
    • 2021-04-07
    • 2021-04-23
    • 2021-12-01
    • 2013-12-21
    相关资源
    最近更新 更多