ssh测试不通过啊

lgstudyvc 2015-08-07 04:08:10
弄个MHA
192.0.0.227
192.0.0.228
192.0.0.229
要实现3台机器间两两无密码登录
配置完后,直接输入 ssh ip可以实现两两无密码登录

但是用masterha_check_ssh --conf=/etc/app1.cnf进行测试时,就报错!!!!!!!
报错信息见图:
[root@v227m /]#
[root@v227m /]# masterha_check_ssh --conf=/etc/app1.cnf
Thu Aug 6 19:17:56 2015 - [warning] Global configuration file /etc/masterha_default.cnf not found. Skipping.
Thu Aug 6 19:17:56 2015 - [info] Reading application default configuration from /etc/app1.cnf..
Thu Aug 6 19:17:56 2015 - [info] Reading server configuration from /etc/app1.cnf..
Thu Aug 6 19:17:56 2015 - [info] Starting SSH connection tests..
Thu Aug 6 19:17:56 2015 - [error][/usr/share/perl5/vendor_perl/MHA/SSHCheck.pm, ln63]
Thu Aug 6 19:17:56 2015 - [debug] Connecting via SSH from root@192.0.0.227(192.0.0.227:22) to root@192.0.0.228(192.0.0.228:22)..
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
Thu Aug 6 19:17:56 2015 - [error][/usr/share/perl5/vendor_perl/MHA/SSHCheck.pm, ln111] SSH connection from root@192.0.0.227(192.0.0.227:22) to root@192.0.0.228(192.0.0.228:22) failed!
Thu Aug 6 19:17:57 2015 - [debug]
Thu Aug 6 19:17:56 2015 - [debug] Connecting via SSH from root@192.0.0.228(192.0.0.228:22) to root@192.0.0.227(192.0.0.227:22)..
Thu Aug 6 19:17:56 2015 - [debug] ok.
Thu Aug 6 19:17:56 2015 - [debug] Connecting via SSH from root@192.0.0.228(192.0.0.228:22) to root@192.0.0.229(192.0.0.229:22)..
Thu Aug 6 19:17:57 2015 - [debug] ok.
Thu Aug 6 19:17:57 2015 - [debug]
Thu Aug 6 19:17:57 2015 - [debug] Connecting via SSH from root@192.0.0.229(192.0.0.229:22) to root@192.0.0.227(192.0.0.227:22)..
Thu Aug 6 19:17:57 2015 - [debug] ok.
Thu Aug 6 19:17:57 2015 - [debug] Connecting via SSH from root@192.0.0.229(192.0.0.229:22) to root@192.0.0.228(192.0.0.228:22)..
Thu Aug 6 19:17:57 2015 - [debug] ok.
SSH Configuration Check Failed!
at /usr/bin/masterha_check_ssh line 44
[root@v227m /]#
节点配置文件见图:
[root@v227m /]#
[root@v227m /]# cat /etc/app1.cnf
[server default]
user=root
password=1
ssh_user=root
repl_user=kyo
repl_password=kyo
manager_workdir=/var/log/masterha/app1
manager_log=/var/log/masterha/app1/app1.log
remote_workdir=/var/log/masterha/app1
#master_ip_failover_script=/tmp/master_ip_failover
[server1]
hostname=192.0.0.227
candidate_master=1
[server2]
hostname=192.0.0.228
candidate_master=1
[server3]
hostname=192.0.0.229
no_master=1
[root@v227m /]#
大神,请教啊!)
...全文
1971 点赞 收藏 8
写回复
8 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
Lu_Min_Yun 2017-02-10
我也遇到这样问题了啊。请问,怎么解决的呀
回复
lvchenotl 2016-03-25
到底是怎么解决的啊,至少给个解决方案嘛,兄弟。。。
回复
literiture123 2016-02-02
我也是安装mha时测试通不过,报错都一样。求解决方法
回复
EluEvin 2015-08-27
接分
回复
xuewuhen20 2015-08-25
兄台,你是怎么解决的?
回复
hanqingwu 2015-08-11
文件读写权限?
回复
lgstudyvc 2015-08-11
已解决,来接分朋友
回复
lgstudyvc 2015-08-10
回复
相关推荐
发帖
Linux_Kernel
创建于2007-08-27

4156

社区成员

Linux/Unix社区 内核源代码研究区
申请成为版主
帖子事件
创建了帖子
2015-08-07 04:08
社区公告
暂无公告