ssh The authenticity of host 192.168.0.xxx can't be established

用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

网址是:

http://blog.ossxp.com/2010/04/1026/

记一下,防止又忘记了,又快到3点了,无数个不眠之夜啊。

2011/10/11
某天机器又改IP了,ssh后,报:
[email protected]:~$ ssh  -o StrictHostKeyChecking=no  192.168.0.130
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
fe:d6:f8:59:03:a5:de:e8:29:ef:3b:26:6e:3d:1d:4b.
Please contact your system administrator.
Add correct host key in /home/mmt/.ssh/known_hosts to get rid of this message.
Offending key in /home/mmt/.ssh/known_hosts:38
Password authentication is disabled to avoid man-in-the-middle attacks.
Keyboard-interactive authentication is disabled to avoid man-in-the-middle attacks.
Permission denied (publickey,password).
 注意这句
Add correct host key in /home/mmt/.ssh/known_hosts to get rid of this message.
执行:
mv  /home/mmt/.ssh/known_hosts known_hosts.bak
再连:
ssh  -o StrictHostKeyChecking=no  192.168.0.130

OK了!

  

ssh The authenticity of host 192.168.0.xxx can't be established

时间: 2024-12-06 21:58:59

ssh The authenticity of host 192.168.0.xxx can't be established的相关文章

好记心不如烂笔头,ssh登录 The authenticity of host 192.168.0.xxx can't be established. 的问题

The authenticity of host 'git.coding.net (123.59.85.184)' can't be established.RSA key fingerprint is SHA256:jok3FH7q5LJ6qvE7iPNehBgXRw51ErE77S0Dn+Vg/Ik.Are you sure you want to continue connecting (yes/no)? 用ssh登录一个机器(换过ip地址),提示输入yes后,屏幕不断出现y,只有按ctr

ssh登录 The authenticity of host 192.168.0.xxx can't be established. 的问题

scp免密码登录:Linux基础 - scp免密码登陆进行远程文件同步 执行scp一直是OK的,某天在本地生成了公钥私钥后,scp到某个IP报以下错误 The authenticity of host '192.168.233.137 (192.168.233.137)' can't be established. ECDSA key fingerprint is SHA256:EsqTfeCJ34DnGV66REuRRPhoFwaLuee5wxFgEAZ8b9k. Are you sure y

The authenticity of host 192.168.0.xxx can't be established

启动hadoop 的时候,可能会报错: The authenticity of host 192.168.0.xxx can't be established 解决方案是,在报错的机器上执行如下代码: ssh -o StrictHostKeyChecking=no 192.168.0.xxx The authenticity of host 192.168.0.xxx can't be established

ERROR 1130 (HY000): Host '192.168.0.190' is not allowed to connect to this MySQL serv

环境: CentOS6.2.MySQL5.1 问题描述: 在配置文件中将需要连接的MySQL的host设置为192.168.0.190(其实就是我自己的IP地址),然后运行自己的程序,结果返回MySQL错误提示,如标题所示.根据字面意思就是不允许通过192.168.0.190连接MySQL服务器. 问题分析: 根据错误提示分析,使用localhost连接MySQL是可以的,但是192.168.0.190去连接却被拒绝,那么首先肯定数据库服务器是没有问题的,应该是权限的问题,因为自己对MySQL也

Error, some other host already uses address 192.168.0.202错误解决方法

今天配置虚拟机网卡的时候遇到错误:Error, some other host already uses address 192.168.0.202 查了很多方法,比如:编辑 /etc/sysconfig/network-scripts/ifup-eth 后来发现局域网里面有其他机器使用了192.168.0.202 这个IP,最后把虚拟机IP改为一个局域网内没人使用的IP就OK了

连接mysql时报:message from server: "Host '192.168.76.89' is not allowed to connect to this MySQL server

处理方案: 1.先用localhost方式连接到MySQL数据库,然后使用MySQL自带的数据库mysql; use mysql: 2.执行:select host from user where user = 'root';  发现,host的值就是localhost. 所以将它的值改掉:update user set host='%' where user = 'root'; 3.修改完成后,执行:flush privileges; 将修改内容生效,再次配置时,用IP地址或者localhos

192.168.0.1/16,1/24;192.168.1.1/16,1/24   IP段的意思

首先来了解一下二进制的转换知识: 二进制数转换成十进制数 二进制的1101转化成十进制1101(2)=1*2^0+0*2^1+1*2^2+1*2^3=1+0+4+8=13转化成十进制要从右到左用二进制的每个数去乘以2的相应次方不过次方要从0开始相反 用十进制的13除以2 每除一下将余数就记在旁边最后按余数从下向上排列就可得到1101十进制转二进制:用2辗转相除至结果为1将余数和最后的1从下向上倒序写 就是结果例如302302/2 = 151 余0151/2 = 75 余175/2 = 37 余1

为什么我们使用192.168.0.1作为内网ip

私有IP地址是一段保留的IP地址.只是使用在局域网中,在Internet上是不使用的. 私有IP地址的范围有: 10.0.0.0-10.255.255.255 172.16.0.0—172.31.255.255 192.168.0.0-192.168.255.255 上述的IP地址都是可以使用在局域网中的. 我第一次接触IP是在电脑室(那时还不叫网吧), 当年流行玩暗黑2, 局域网联机要输入主机IP地址, 所以192.168.0.x这串数字就这样被我记住了. 后来有了自己的电脑, 再后来上了大学

解决ERROR 1130 (HY000): Host '192.168.1.9' is not allowed to connect to this MySQL server

本机是mysql的数据库,想用另一台ip为192.168.1.9的连接这个mysql数据库,可是报了这个错误. 查询得到2个方法 第一个是在user表把localhost改为%, 我这么做后不仅没有解决,本地连接都要[email protected]%这么做了(现在想想好像失误把所有localhost都给改了). 第二个方法就生效了. 终端登陆mysql,执行一句sql: GRANT ALL PRIVILEGES ON *.* TO 'root'@'192.168.1.9' IDENTIFIED