我试图设置git与http://danielmiessler.com/study/git/#website来管理我的网站。

我已经到了指令的最后一步:git push website +master:refs/heads/master

我正在win7中使用git ming32命令行工作

$ git push website +master:refs/heads/master
Bill@***.com's password:
Connection closed by 198.91.80.3
fatal: Could not read from remote repository.

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

这里的一个问题可能是程序正在寻找bill@* **.com。当我通过ssh连接到我的网站,我有一个不同的用户名(让我们说'abc')。也许这个应该是abc@***。com。如果是这样,我不知道如何改变这一点,或者如果我可以推下一个别名


当前回答

我遇到这个问题是由于多次输入错误的密码。

所以我必须将MaxAuthTries更改为更大的数字:

在服务器端打开sshd_config:

vim  /etc/ssh/sshd_config

更改MaxAuthTries编号:

MaxAuthTries 100    # there I change to 100, you can change to a bigger than your current tries number

其他回答

在我的例子中,bitbucket的web ssh密钥设置UI令人困惑。

存储库设置—>接入键—>添加键:错误

个人设置—> SSH密钥—>添加密钥:Ok

公钥注册界面互斥。您只能在一个地方注册公钥。把它们统一在一个屏幕上似乎很好。

我只是想补充一下这个问题。我有Git设置使用PLink和Pageant进行身份验证,我也得到了错误FATAL error: Disconnected:不支持可用的身份验证方法(服务器发送:publickey)。我已经打开了选美,但错误仍然显示。这个问题?我没有在Pageant中加载私钥(要添加密钥,请遵循以下说明)。就是这么简单。

我之前也遇到过同样的问题…

我的.git/config有

url = git@github.com:manishnakar/polymer-demo.git

我把它换成了

url = https://github.com/manishnakar/polymer-demo.git 

现在它工作了:)

我在ssh代理中有一个错误的ssh私钥。

先删除所有键

ssh-add -D

然后加了正确的键。

ssh-add ~/.ssh/id_rsa

我遇到这个问题是由于多次输入错误的密码。

所以我必须将MaxAuthTries更改为更大的数字:

在服务器端打开sshd_config:

vim  /etc/ssh/sshd_config

更改MaxAuthTries编号:

MaxAuthTries 100    # there I change to 100, you can change to a bigger than your current tries number