SSH无法建立[服务器]的真实性

时间:2012-12-05 18:17:12

标签: git ssh ssh-keys assembla

我无法控制服务器,因此无法执行this answer建议的操作。我已经按照this question/answer对推荐的内容进行了操作。

我的简单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

有什么想法吗?

1 个答案:

答案 0 :(得分:5)

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