免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2147 | 回复: 0
打印 上一主题 下一主题

MHA masterha_check_ssh 不通过 [复制链接]

论坛徽章:
2
数据库技术版块每日发帖之星
日期:2015-08-03 06:20:00数据库技术版块每日发帖之星
日期:2015-08-23 06:20:00
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2015-10-15 16:28 |只看该作者 |倒序浏览
[root@swserver .ssh]# masterha_check_ssh --conf=/etc/app1.cnf
Thu Oct 15 16:16:52 2015 - [info] Reading default configuration from /etc/masterha_default.cnf..
Thu Oct 15 16:16:52 2015 - [info] Reading application default configuration from /etc/app1.cnf..
Thu Oct 15 16:16:52 2015 - [info] Reading server configuration from /etc/app1.cnf..
Thu Oct 15 16:16:52 2015 - [info] Starting SSH connection tests..
Thu Oct 15 16:16:53 2015 - [error][/usr/share/perl5/vendor_perl/MHA/SSHCheck.pm, ln63]
Thu Oct 15 16:16:53 2015 - [debug]  Connecting via SSH from root@192.168.1.254(192.168.1.254:22) to root@192.168.1.201(192.168.1.201:22)..
Warning: Permanently added '192.168.1.254' (RSA) to the list of known hosts.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
Thu Oct 15 16:16:53 2015 - [error][/usr/share/perl5/vendor_perl/MHA/SSHCheck.pm, ln111] SSH connection from root@192.168.1.254(192.168.1.254:22) to root@192.168.1.201(192.168.1.201:22) failed!
Thu Oct 15 16:17:05 2015 - [debug]
Thu Oct 15 16:16:52 2015 - [debug]  Connecting via SSH from root@192.168.1.201(192.168.1.201:22) to root@192.168.1.202(192.168.1.202:22)..
Thu Oct 15 16:16:53 2015 - [debug]   ok.
Thu Oct 15 16:16:53 2015 - [debug]  Connecting via SSH from root@192.168.1.201(192.168.1.201:22) to root@192.168.1.254(192.168.1.254:22)..
Thu Oct 15 16:17:05 2015 - [debug]   ok.
Thu Oct 15 16:17:10 2015 - [debug]
Thu Oct 15 16:16:52 2015 - [debug]  Connecting via SSH from root@192.168.1.202(192.168.1.202:22) to root@192.168.1.201(192.168.1.201:22)..
Thu Oct 15 16:17:04 2015 - [debug]   ok.
Thu Oct 15 16:17:04 2015 - [debug]  Connecting via SSH from root@192.168.1.202(192.168.1.202:22) to root@192.168.1.254(192.168.1.254:22)..
Thu Oct 15 16:17:10 2015 - [debug]   ok.
SSH Configuration Check Failed!
at /usr/bin/masterha_check_ssh line 44


ssh免密码已设置了的。

[root@swserver .ssh]# ssh 192.168.1.201
Last login: Thu Oct 15 01:14:37 2015 from 192.168.1.254
[root@lbx ~]# exit
logout
Connection to 192.168.1.201 closed.
You have new mail in /var/spool/mail/root
[root@swserver .ssh]# ssh 192.168.1.202
Last login: Thu Oct 15 01:14:41 2015 from 192.168.1.254
[root@server2 ~]# exit
logout
Connection to 192.168.1.202 closed.


[root@swserver .ssh]# ll
total 16
-rw------- 1 root root  788 Oct 15 16:16 authorized_keys
-rw------- 1 root root  672 Oct 15 16:12 id_dsa
-rw-r--r-- 1 root root  603 Oct 15 16:12 id_dsa.pub
-rw-r--r-- 1 root root 1185 Oct 15 16:16 known_hosts

[root@swserver ~]# ls -al
drwx------   2 root root  4096 Oct 15 16:14 .ssh

请问各位大神,是什么原因呢?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP