3

我无法控制服务器,因此无法执行此答案的建议。我已经遵循了这个问题/答案对已经推荐的内容。

我的简单ssh尝试因“主机密钥验证失败”而失败:

$ ssh -v git@git.assembla.com
OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /home/josvic/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to git.assembla.com [64.250.188.42] port 22.
debug1: Connection established.
debug1: identity file /home/josvic/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: identity file /home/josvic/.ssh/id_rsa-cert type -1
debug1: identity file /home/josvic/.ssh/id_dsa type -1
debug1: identity file /home/josvic/.ssh/id_dsa-cert type -1
debug1: identity file /home/josvic/.ssh/id_ecdsa type -1
debug1: identity file /home/josvic/.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.9p1 Debian-5-assembla
debug1: match: OpenSSH_5.9p1 Debian-5-assembla pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ECDSA b7:7a:ad:9f:57:6f:ec:19:56:60:62:18:32:7a:8c:1b
The authenticity of host 'git.assembla.com (64.250.188.42)' can't be established.
ECDSA key fingerprint is b7:7a:ad:9f:57:6f:ec:19:56:60:62:18:32:7a:8c:1b.
Are you sure you want to continue connecting (yes/no)? 
Host key verification failed

任何想法?

4

1 回答 1

5

您需要将服务器的密钥指纹添加到受信任的密钥文件中。只需使用 ssh 客户端连接到该服务器并在它询问密钥时键入“是”。或者,手动编辑trusted_keys 文件。

于 2012-12-05T18:46:26.970 回答