无法建立主机'bitbucket.org(131.103.20.168)'的真实性

Dzj*_*ost 10 bitbucket cloud9-ide

在Cloud9中我做:

$ git push -u origin --all

The authenticity of host 'bitbucket.org (131.103.20.168)' can't be established.
RSA key fingerprint is 97:8c:1b:f2:6f:14:6b:5c:3b:ec:aa:46:46:74:7c:40.
Are you sure you want to continue connecting (yes/no)?
Run Code Online (Sandbox Code Playgroud)

ssh-key从cloud9 添加了到Bitbucket.难道不足以让Cloud9对Bitbucket进行身份验证吗?

Ess*_*sse 7

不.当你第一次连接到bitbucket时,你机器上的ssh客户端会将RSA指纹存储在名为的文件中known_hosts.然后在每个连接服务器指纹之前用存储的指纹进行验证(以避免中间人攻击).

所以 - 你需要只接受一次这个指纹(如果你很勤奋,你应该把它与bitbucket提供的指纹进行比较).


Aka*_*ash 6

如果添加了密钥,您可能会错过这个重要的步骤......

当我们收到提示时Are you sure you want to continue connecting(yes/no)?,我们应该yes在按下按键之前键入return/Enter

祝你好运。