kylin3278 发表于 2015-10-15 16:28

MHA masterha_check_ssh 不通过

# masterha_check_ssh --conf=/etc/app1.cnf
Thu Oct 15 16:16:52 2015 - Reading default configuration from /etc/masterha_default.cnf..
Thu Oct 15 16:16:52 2015 - Reading application default configuration from /etc/app1.cnf..
Thu Oct 15 16:16:52 2015 - Reading server configuration from /etc/app1.cnf..
Thu Oct 15 16:16:52 2015 - Starting SSH connection tests..
Thu Oct 15 16:16:53 2015 -
Thu Oct 15 16:16:53 2015 - 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 - 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 -
Thu Oct 15 16:16:52 2015 - 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 -    ok.
Thu Oct 15 16:16:53 2015 - 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 -    ok.
Thu Oct 15 16:17:10 2015 -
Thu Oct 15 16:16:52 2015 - 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 -    ok.
Thu Oct 15 16:17:04 2015 - 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 -    ok.
SSH Configuration Check Failed!
at /usr/bin/masterha_check_ssh line 44


ssh免密码已设置了的。

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


# ll
total 16
-rw------- 1 root root788 Oct 15 16:16 authorized_keys
-rw------- 1 root root672 Oct 15 16:12 id_dsa
-rw-r--r-- 1 root root603 Oct 15 16:12 id_dsa.pub
-rw-r--r-- 1 root root 1185 Oct 15 16:16 known_hosts

# ls -al
drwx------   2 root root4096 Oct 15 16:14 .ssh

请问各位大神,是什么原因呢?
页: [1]
查看完整版本: MHA masterha_check_ssh 不通过