ssh登录 The authenticity of host 192.168.0.xxx can't

用ssh登录一个机器(换过ip地址),提示输入yes后,屏幕不断出现y,只有按ctrl + c结束

 

错误是:The authenticity of host 192.168.0.xxx can't be established.

 

以前和同事碰到过这个问题,解决了,没有记录,这次又碰到了不知道怎么处理,还好有QQ聊天记录,查找到一下,找到解决方案:

 

执行ssh  -o StrictHostKeyChecking=no  192.168.0.xxx 就OK

**********************************************************************************************************

另外的情况

今天晚上在搞github仓库..但是死活不能和github联系起来。

报了这个错:

$ git push -u origin master
The authenticity of host 'github.com (192.30.252.128)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)?
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

ssh登录 The authenticity of host 192.168.0.xxx can't_第1张图片

就是这个东西。搞死我了。。

不能和github联系在一起。

最后发现是自己小白了....

ssh登录 The authenticity of host 192.168.0.xxx can't_第2张图片

结果就可以了...哎..记录一下自己的经历..

你可能感兴趣的:(ssh登录 The authenticity of host 192.168.0.xxx can't)