2011-09-24 86 views
4

我想在Assembla(assembla.com)上设置一个git仓库,而且我在第一次“推”时遇到了麻烦。我对git一无所知,但我以前成功推送到github上的存储库。我在Windows Vista上使用git。当我运行从相关目录中的git bash和键入“混帐推”,我得到:用Git推SSH烦恼

The authenticity of host 'git.assembla.com (64.250.188.42)' can't be established. 
RSA fingerprint is 31:06:...(omitted)...:07:e6. 
Are you sure you want to continue connecting (yes/no)? 

输入“是”是不行的,它不接受密码。

我知道这与SSH密钥有关,但我无法弄清楚我的问题。我的本地计算机上的git名称和电子邮件与我在Assembla中输入的名称和电子邮件相匹配,并且我尝试生成一个新的SSH密钥,并将id_rsa.pub文件上传到Assembla中无效。

一个搜索打开了这个论坛主题:http://forum.assembla.com/forums/3/topics/2754

至于我可以告诉大家都不由管理员在最后的申请后提出的建议。 1和2不应该适用,因为这是网站上的香草帐户,我没有更改任何设置。 3,4和5我相信我已经完成了。 6我已经完成了,但我删除了“GSSAPIAuthentication”行,因为它生成了一条额外的错误消息。


NB。关于Git,我还有一个关于StackOverflow的问题。这个问题是无关的,涉及到不同的Windows机器。我还没有放弃我的另一个问题。


编辑:输出的

ssh -v [email protected]

输出 git remote -v
$ ssh -v [email protected] 
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007 
debug1: Reading configuration data /c/Users/Philip/.ssh/config 
debug1: Applying options for git.assembla.com 
debug1: Connecting to git.assembla.com [64.250.188.42] port 22. 
debug1: Connection established. 
debug1: identity file /c/Users/Philip/.ssh/id_rsa.pub type 1 
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.1p1 Debian-5-assembla 
debug1: match: OpenSSH_5.1p1 Debian-5-assembla pat OpenSSH* 
debug1: Enabling compatibility mode for protocol 2.0 
debug1: Local version string SSH-2.0-OpenSSH_4.6 
debug1: SSH2_MSG_KEXINIT sent 
debug1: SSH2_MSG_KEXINIT received 
debug1: kex: server->client aes128-cbc hmac-md5 none 
debug1: kex: client->server aes128-cbc hmac-md5 none 
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent 
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP 
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent 
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY 
The authenticity of host 'git.assembla.com (64.250.188.42)' can't be established. 
RSA key fingerprint is 31:06:3b:0d:cd:23:1a:41:dc:f2:c5:7d:9c:24:07:e6. 
Are you sure you want to continue connecting (yes/no)? 

$ git remote -v 
origin [email protected]:ksv.git (fetch) 
origin [email protected]:ksv.git (push) 

密码提示:

$ git push 
The authenticity of host 'git.assembla.com (64.250.188.42)' can't be established. 
RSA key fingerprint is 31:06:3b:0d:cd:23:1a:41:dc:f2:c5:7d:9c:24:07:e6. 
Are you sure you want to continue connecting (yes/no)? yes 
Warning: Permanently added 'git.assembla.com,64.250.188.42' (RSA) to the list of known hosts. 
Enter passphrase for key '/c/Users/Philip/.ssh/id_rsa.pub': 
+0

因此,输入“是”接受主机密钥,然后它要求密码?或不?你能向我们展示你的推送尝试的完整输出吗?组合使用ssh密钥或用户名/密码,如果使用密钥,您是否(a)将密钥加载到ssh-agent中,或者(b)配置ssh使用正确的密钥来连接组合? – larsks

+1

特别是,查看密码提示很有用,所以我们可以检查它是要求提供的私钥的密码,还是用于组合的密码验证。此外,'ssh -v git @ git.assembla.com'和'git remote -v'的输出将会很有用。 –

+0

@Mark,我已将这些命令的输出添加到问题以及密码提示中。 – Hammerite

回答

3

看来从错误消息如果问题是,你在你的.ssh/config文件中指定的公共键(id_dsa.pub)作为IdentityFile而不是你的私人关键,这将是刚刚id_dsa的。

提问者已在上述评论中确认这是问题所在。