我正在尝试在Assembla(assembla.com)上设置一个git存储库,而我在第一次“推送”时遇到了麻烦。我对git一无所知,但我之前已成功推送到github上的存储库。我在Windows Vista上使用git。当我从相关目录运行git bash并输入“git push”时,我得到:
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 git@git.assembla.com
的输出:
$ ssh -v git@git.assembla.com
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
的输出:
$ git remote -v
origin git@git.assembla.com:ksv.git (fetch)
origin git@git.assembla.com: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 :(得分:3)
从错误消息中可以看出问题是您在id_dsa.pub
文件中将公开键(IdentityFile
)指定为.ssh/config
而不是您的私人键,它只是id_dsa
。
提问者在上述评论中已经确认这是问题所在。