配置 NTP

SSMC 允许您通过 config_security.sh 脚本在设备上配置 NTP。

前提条件
确保在启用了 host_access 功能时将 NTP 主机添加到出站白名单中。
过程
  1. /ssmc/conf/security_config.properties 中,将 NTP 服务器的 FQDN 或者 IPv4 或 IPv6 地址设置为 ssmc.ntp.DnsOrIP 属性,以将 NTP 主机添加到 SSMC 设备中。

    ssmc.ntp.DnsOrIP=<your_ntp_host_name_or_ip_address>

  2. 运行以下命令以提交配置并启用该服务:

    sudo /ssmc/bin/config_security.sh -o configure_ntp -a set -f

  3. 运行以下命令以重置配置并禁用该服务:

    sudo /ssmc/bin/config_security.sh -o configure_ntp -a reset -f