当前位置:嗨网首页>书籍在线阅读

10-检查SSH的配置

  
选择背景色: 黄橙 洋红 淡粉 水蓝 草绿 白色 选择字体: 宋体 黑体 微软雅黑 楷体 选择字体大小: 恢复默认

检查MHA Manager到所有MHA Node的SSH连接状态:

[root@ip186 home]# masterha_check_ssh --conf=/etc/masterha/app1.cnf

Fri Jul 19 18:21:09 2013 - [warning] Global configuration file /etc/masterha_default.cnf not found. Skipping.

Fri Jul 19 18:21:09 2013 - [info] Reading application default configurations from/etc/masterha/app1.cnf..

Fri Jul 19 18:21:09 2013 - [info] Reading server configurations from/etc/masterha/app1.cnf..

Fri Jul 19 18:21:09 2013 - [info] Starting SSH connection tests..

Fri Jul 19 18:21:12 2013 - [debug]

Fri Jul 19 18:21:09 2013 - [debug] Connecting via SSH from [email protected](192.168.7.83:22) to [email protected](192.168.7.81:22)..

Fri Jul 19 18:21:12 2013 - [debug] ok.

Fri Jul 19 18:21:12 2013 - [debug] Connecting via SSH from [email protected](192.168.7.83:22) to [email protected](192.168.7.185:22)..

Fri Jul 19 18:21:12 2013 - [debug] ok.

Fri Jul 19 18:21:12 2013 - [debug]

Fri Jul 19 18:21:10 2013 - [debug] Connecting via SSH from [email protected](192.168.7. 185:22) to [email protected](192.168.7.81:22)..

Fri Jul 19 18:21:12 2013 - [debug] ok.

Fri Jul 19 18:21:12 2013 - [debug] Connecting via SSH from [email protected](192.168.7. 185:22) to [email protected](192.168.7.83:22)..

Fri Jul 19 18:21:12 2013 - [debug] ok.

Fri Jul 19 18:21:13 2013 - [debug]

Fri Jul 19 18:21:09 2013 - [debug] Connecting via SSH from [email protected](192.168.7. 81:22) to [email protected](192.168.7.83:22)..

Fri Jul 19 18:21:11 2013 - [debug] ok.

Fri Jul 19 18:21:11 2013 - [debug] Connecting via SSH from [email protected](192.168.7. 81:22) to [email protected](192.168.7.185:22)..

Fri Jul 19 18:21:13 2013 - [debug] ok.

Fri Jul 19 18:21:13 2013 - [info] All SSH connection tests passed successfully.

从输出可以看出 ip83到 ip81和 ip85 ssh ok,ip85到 ip81和 ip83 ssh ok,ip81到 ip83和 ip185 ssh ok。