- 论坛徽章:
- 2
|
[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
请问各位大神,是什么原因呢? |
|