2012-12-05 38 views
3

我無法控制服務器,因此無法執行this answer建議的操作。我已經遵循this question/answer對已經建議。SSH無法建立[server]的真實性

我簡單ssh嘗試失敗, 「主機密鑰驗證失敗」:

$ ssh -v [email protected] 
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 

任何想法?

+2

當你被問到時你只需要輸入'yes'。你爲什麼不那樣做? – Chronial

+0

@Chronial我認爲只要按ReturnKey就可以輸入「yes」!假設是所有人的母親......謝謝!請輸入您的評論作爲答案,我會將其標記爲正確,因爲它在下面的答案之前。 –

回答

5

您需要將服務器的密鑰指紋添加到可信密鑰文件。 只需使用ssh客戶端連接到該服務器,並在詢問密鑰時鍵入'yes'。 或者,手動編輯trusted_keys文件。

+0

謝謝,+ 1ed。如果@Chronial將他的評論作爲答案,我會將他的答案標記爲正確,儘管他的評論是在答案之前提出的。 –