[root@vm-centos7-64 ~]# masterha_check_ssh –conf=/etc/masterha/app01.conf
Thu Mar 18 20:49:45 2021 – [warning] Global configuration file /etc/masterha_default.cnf not found. Skipping.
Thu Mar 18 20:49:45 2021 – [info] Reading application default configuration from /etc/masterha/app01.conf..
Thu Mar 18 20:49:45 2021 – [info] Reading server configuration from /etc/masterha/app01.conf..
Thu Mar 18 20:49:45 2021 – [info] Starting SSH connection tests..
Thu Mar 18 20:49:50 2021 – [error][/usr/share/perl5/vendor_perl/MHA/SSHCheck.pm, ln63]
Thu Mar 18 20:49:45 2021 – [debug] Connecting via SSH from root@192.168.4.132(192.168.4.132:22) to root@192.168.4.131(192.168.4.131:22)..
ssh: connect to host 192.168.4.132 port 22: Connection timed out
Thu Mar 18 20:49:50 2021 – [error][/usr/share/perl5/vendor_perl/MHA/SSHCheck.pm, ln111] SSH connection from root@192.168.4.132(192.168.4.132:22) to root@192.168.4.131(192.168.4.131:22) failed!
Thu Mar 18 20:49:51 2021 – [error][/usr/share/perl5/vendor_perl/MHA/SSHCheck.pm, ln63]
Thu Mar 18 20:49:46 2021 – [debug] Connecting via SSH from root@192.168.4.130(192.168.4.130:22) to root@192.168.4.132(192.168.4.132:22)..
ssh: connect to host 192.168.4.130 port 22: Connection timed out
Thu Mar 18 20:49:51 2021 – [error][/usr/share/perl5/vendor_perl/MHA/SSHCheck.pm, ln111] SSH connection from root@192.168.4.130(192.168.4.130:22) to root@192.168.4.132(192.168.4.132:22) failed!
Thu Mar 18 20:49:51 2021 – [error][/usr/share/perl5/vendor_perl/MHA/SSHCheck.pm, ln63]
Thu Mar 18 20:49:45 2021 – [debug] Connecting via SSH from root@192.168.4.131(192.168.4.131:22) to root@192.168.4.132(192.168.4.132:22)..
ssh: connect to host 192.168.4.131 port 22: Connection timed out
Thu Mar 18 20:49:50 2021 – [error][/usr/share/perl5/vendor_perl/MHA/SSHCheck.pm, ln111] SSH connection from root@192.168.4.131(192.168.4.131:22) to root@192.168.4.132(192.168.4.132:22) failed!
SSH Configuration Check Failed!
at /usr/bin/masterha_check_ssh line 44.
成功后会显示:
[root@vm-centos7-64 ~]# masterha_check_ssh –conf=/etc/masterha/app01.conf
Thu Mar 18 20:52:15 2021 – [warning] Global configuration file /etc/masterha_default.cnf not found. Skipping.
Thu Mar 18 20:52:15 2021 – [info] Reading application default configuration from /etc/masterha/app01.conf..
Thu Mar 18 20:52:15 2021 – [info] Reading server configuration from /etc/masterha/app01.conf..
Thu Mar 18 20:52:15 2021 – [info] Starting SSH connection tests..
Thu Mar 18 20:52:19 2021 – [debug]
Thu Mar 18 20:52:15 2021 – [debug] Connecting via SSH from root@192.168.94.132(192.168.94.132:22) to root@192.168.94.131(192.168.94.131:22)..
Warning: Permanently added ‘192.168.94.132’ (ECDSA) to the list of known hosts.
Thu Mar 18 20:52:17 2021 – [debug] ok.
Thu Mar 18 20:52:17 2021 – [debug] Connecting via SSH from root@192.168.94.132(192.168.94.132:22) to root@192.168.94.130(192.168.94.130:22)..
Thu Mar 18 20:52:18 2021 – [debug] ok.
Thu Mar 18 20:52:20 2021 – [debug]
Thu Mar 18 20:52:16 2021 – [debug] Connecting via SSH from root@192.168.94.130(192.168.94.130:22) to root@192.168.94.132(192.168.94.132:22)..
Warning: Permanently added ‘192.168.94.130’ (ECDSA) to the list of known hosts.
Warning: Permanently added ‘192.168.94.132’ (ECDSA) to the list of known hosts.
Thu Mar 18 20:52:18 2021 – [debug] ok.
Thu Mar 18 20:52:18 2021 – [debug] Connecting via SSH from root@192.168.94.130(192.168.94.130:22) to root@192.168.94.131(192.168.94.131:22)..
Warning: Permanently added ‘192.168.94.131’ (ECDSA) to the list of known hosts.
Thu Mar 18 20:52:20 2021 – [debug] ok.
Thu Mar 18 20:52:20 2021 – [debug]
Thu Mar 18 20:52:16 2021 – [debug] Connecting via SSH from root@192.168.94.131(192.168.94.131:22) to root@192.168.94.132(192.168.94.132:22)..
Warning: Permanently added ‘192.168.94.131’ (ECDSA) to the list of known hosts.
Warning: Permanently added ‘192.168.94.132’ (ECDSA) to the list of known hosts.
Thu Mar 18 20:52:18 2021 – [debug] ok.
Thu Mar 18 20:52:18 2021 – [debug] Connecting via SSH from root@192.168.94.131(192.168.94.131:22) to root@192.168.94.130(192.168.94.130:22)..
Warning: Permanently added ‘192.168.94.130’ (ECDSA) to the list of known hosts.
Thu Mar 18 20:52:19 2021 – [debug] ok.
Thu Mar 18 20:52:20 2021 – [info] All SSH connection tests passed successfully.