[omm@opengauss03 ~]$ gs_check -i CheckCPU
Parsing the check items config file successfully
[GAUSS-53026]: ERROR: Execute SSH command on host 192.168.56.19 faild. The exception is:
数据库所在主机之间没有实现SSH免密登录
切换到omm系统用户下,执行如下命令生成密钥对
gs_sshexkey -h 192.168.56.19
注意
:-h 后面的IP地址换成你自己环境中数据库所在主机IP地址
该命令执行成功后,会在omm用户家目录下生成一个隐藏目录.ssh
,在该.ssh目录下生成了密钥对,如下所示:
重新执行openGauss服务器端命令,如下所示,正常显示
[omm@opengauss03 ~]$ gs_check -i CheckDBConnection
Parsing the check items config file successfully
Distribute the context file to remote hosts successfully
Start to health check for the cluster. Total Items:1 Nodes:1
Checking... [=========================] 1/1
Start to analysis the check result
CheckDBConnection...........................OK
The item run on 1 nodes. success: 1
Analysis the check result successfully
Success. All check items run completed. Total:1 Success:1
For more information please refer to /opt/install/om/script/gspylib/inspection/output/CheckReport_202401036302132258.tar.gz
[omm@opengauss03 ~]$