使用 OpenVAS 掃描 CentOS Linux 主機會出現如下的警告訊息
SSH Weak Encryption Algorithms Supported
SSH Weak MAC Algorithms Supported
點選可以查看相關訊息
SSH Weak Encryption Algorithms Supported
SSH Weak MAC Algorithms Supported
[@more@]解決方式:
修改 /etc/ssh/sshd_config 設定檔
# cp /etc/ssh/sshd_config /etc/ssh/sshd_config.$(date +%F)
# vim /etc/ssh/sshd_config
加入下面二行
Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com
MACs hmac-sha1
重新啟動 SSH Server
# systemctl restart sshd.service;systemctl status sshd.service