我们正在经历基于CIS强化 Amazon Linux 1 的过程。
在“预期值”下控制 5.2.12 状态:
以下列表字符串值X表示/etc/ssh/sshd_config文件中定义 的MAC设置的当前状态。
======期望值======
包含正则表达式列表
hmac-sha2-512-etm@openssh.com
hmac-sha2-256-etm@openssh.com
umac-128-etm@openssh .com
hmac-sha2-512 hmac-sha2-256
umac-128@openssh.com curve25519-sha256@libssh.org
diffie -hellman
-group-exchange-sha256
基于此设置的 RHEL 文档,我们将以下内容附加到/etc/ssh/sshd_config
:
MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,umac-128@openssh.com,curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256
/etc/init.d/sshd restart
导致以下错误:
启动 sshd:/etc/ssh/sshd_config 第 142 行:Bad SSH2 Mac spec 'hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com ,hmac-sha2-512,hmac-sha2-256,umac-128@openssh.com,curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256'。[失败的]
我们如何在 Amazon Linux 上配置 SSHD MAC?