【发布时间】:2016-09-16 20:40:54
【问题描述】:
我使用的是 git 版本 2.6.2.windows.1,我在 git bash 上克隆 git 存储库时突然开始收到以下错误消息:
$ git clone URL && scp -p -P 29418 URL:hooks/xxxxx/.git/hooks/
Cloning into 'xxxx'...
FATAL ERROR: Disconnected: No supported authentication methods available
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
【问题讨论】:
-
你使用的是什么版本的 Git?在哪个操作系统上? (服务器端同样的问题)
-
git 版本 2.6.2 和客户端的 windows 7。服务器端的 git 版本 1.7.1 和 RedHat 6.3
-
之前是否有效?发生了什么变化?
-
是的,它以前工作过。 AFAIK 没有任何改变
-
你需要检查你的 ssh 连接:
ssh -Tv git@yourServer