修補 CVE-2023-48795 方式
系統環境
#
檢測方式
#
使用有風險的加密方式登入,無法登入則驗證通過
出現下列訊息算完成修補
修補方式
#
- 更新文件: /etc/sysconfig/sshd
將 #CRYPTO_POLICY= 取消註解,結果如下
- 更新文件: /etc/ssh/sshd_config
新增限制加密演算法
1
2
3
4
5
|
KexAlgorithms [email protected],ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha256
Ciphers [email protected],[email protected],aes256-ctr,aes192-ctr,aes128-ctr
MACs [email protected],[email protected],[email protected],hmac-sha2-512,hmac-sha2-256,[email protected]
|
- 檢查設定正確
- 重啟 sshd 服務
1
|
sudo systemctl restart sshd
|
參考資料
#