免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2449 | 回复: 4

我在centos上ssh一台freebsd不上 咋回事哦? [复制链接]

论坛徽章:
0
发表于 2009-03-23 14:06 |显示全部楼层
我在centos上ssh一台freebsd不上 咋回事哦?
但是可以ssh上其他的linux机器
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 DSA host key has just been changed.
The fingerprint for the DSA key sent by the remote host is
0d:29:99:83:58:86:cd:92:b9:93:6b:73:3c:37:43:3e.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending key in /root/.ssh/known_hosts:3
DSA host key for 222.197.165.197 has changed and you have requested strict checking.
Host key verification failed.

论坛徽章:
0
发表于 2009-03-23 14:12 |显示全部楼层
我换另一台rhel ssh freebsd
在输入密码时就不对了 杂个回事?

The authenticity of host '222.197.165.197 (222.197.165.197)' can't be established.
DSA key fingerprint is 0d:29:99:83:58:86:cd:92:b9:93:6b:73:3c:37:43:3e.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '222.197.165.197' (DSA) to the list of known hosts.
Password:
Password:
Password:
Permission denied (publickey,keyboard-interactive).

论坛徽章:
0
发表于 2009-03-23 14:26 |显示全部楼层
原帖由 St.小糊涂神 于 2009-3-23 14:12 发表
我换另一台rhel ssh freebsd
在输入密码时就不对了 杂个回事?

The authenticity of host '222.197.165.197 (222.197.165.197)' can't be established.
DSA key fingerprint is 0d:29:99:83:58:86:cd:92:b ...


这个问题解决了
vi /etc/ssh/sshd_config
把# PermitRootLogin no 改成 PermitRootLogin yes
把# PasswordAuthentication no 改成PasswordAuthentication yes
存盘退出
/etc/rc.d/sshd restart

但是用centos的那个还是不行 应该是那个什么密钥之类的问题吧
怎么解决呢?

论坛徽章:
0
发表于 2009-03-23 14:32 |显示全部楼层
把/root/.ssh/known_hosts删除就行了

论坛徽章:
54
2017金鸡报晓
日期:2017-02-08 10:39:42操作系统版块每日发帖之星
日期:2016-03-08 06:20:00操作系统版块每日发帖之星
日期:2016-03-07 06:20:00操作系统版块每日发帖之星
日期:2016-02-22 06:20:00操作系统版块每日发帖之星
日期:2016-01-29 06:20:00操作系统版块每日发帖之星
日期:2016-01-27 06:20:00操作系统版块每日发帖之星
日期:2016-01-20 06:20:00操作系统版块每日发帖之星
日期:2016-01-06 06:20:0015-16赛季CBA联赛之江苏
日期:2015-12-21 20:00:24操作系统版块每日发帖之星
日期:2015-12-21 06:20:00IT运维版块每日发帖之星
日期:2015-11-17 06:20:002015亚冠之广州恒大
日期:2015-11-12 10:58:02
发表于 2009-03-23 17:34 |显示全部楼层
原帖由 St.小糊涂神 于 2009-3-23 14:32 发表
把/root/.ssh/known_hosts删除就行了

我简单再补充一下原因:
在SSH时,在~.ssh/known_hosts里存有服务器的公钥对,登录一个服务器后,就留下一条这个IP的公钥记录,下次登录时就不用再发请求了。但是这样做也有坏处:如果以前登录的那个机器换了,那么就会发现公钥不对了,于是便出现楼主的错误提示。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP