又到了弱掃的時間
昨天看報告
出現以下的問題
Vulnerability Detection Result
The remote SSH server supports the following weak KEX algorithm(s):
KEX algorithm | Reason
------------------------------------------------
diffie-hellman-group-exchange-sha1 | Using SHA-1
可是我看目前使用的algorithm已經沒有 diffie-hellman-group-exchange-sha1
sshd -T | grep kex
gssapikexalgorithms gss-group14-sha256-,gss-group16-sha512-,gss-nistp256-sha256-,gss-curve25519-sha256-,gss-group14-sha1-,gss-gex-sha1-
kexalgorithms curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha1
感覺應該指的是 diffie-hellman-group14-sha1 才對
再改一下 /etc/ssh/sshd_config 把 diffie-hellman-group14-sha1 拿掉
重啟 sshd
systemctl restart sshd