更新 SSH 配置

IBM® Intelligent Operations Center 安装需要进行 SSH 配置更改才能成功运行。

关于此任务

在每个 IBM Intelligent Operations Center 服务器上,查看 /etc/ssh/sshd_config 文件的内容,并根据需要更改该文件。

过程

  1. 通过运行以下命令生成该文件的备份副本:cp /etc/ssh/sshd_config /etc/ssh/sshd_config.orig
  2. 编辑 /etc/ssh/sshd_config 文件。
  3. 注释掉任何 AllowUsers 语句。
  4. 注释掉任何 AllowGroups 语句。
  5. 将任何 PermitRootLogin 语句设置为 yes,直至 IBM Intelligent Operations Center 安装完成。如果文件中没有 PermitRootLogin 语句,请勿添加该语句。
  6. 将任何 PasswordAuthentication 语句设置为 yes,直至 IBM Intelligent Operations Center 安装完成。如果没有 PasswordAuthentication 语句,请勿添加该语句。
  7. 保存更改。
  8. 通过运行以下命令生成已更改文件的备份副本:cp /etc/ssh/sshd_config /etc/ssh/sshd_config.ioc_maintenance
  9. 如果更改了 sshd_config 文件,请运行以下命令激活更改:service sshd restart

下一步做什么

在成功安装 IBM Intelligent Operations Center 后,将 /etc/ssh/sshd_config 恢复到其原始状态,然后运行以下命令激活更改:service sshd restart