Từ phần mềm quét lỗ hổng của tôi, tôi nhận được cờ/tin nhắn này
Các thuật toán trao đổi khóa yếu sau được bật:
diffie-hellman-nhóm-trao đổi-sha1
diffie-hellman-group1-sha1
Tôi muốn tắt hai thuật toán này.
Tôi đã truy vấn sshd_config...
[root@vm01 ~]# sshd -T | grep "\(ciphers\|macs\|kexalgorithms\)"
thuật toán gssapikex gss-gex-sha1-,gss-group1-sha1-,gss-group14-sha1-
mật mã chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
mac hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512,hmac-sha2-256
kexalgorithms curve25519-sha256,curve25519-sha256@libssh.org,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh -sha2-nistp256,diffie-hellman-group-exchange-sha256
[root@vm01 ~]# ssh -Q kex
diffie-hellman-group1-sha1
diffie-hellman-group14-sha1
diffie-hellman-group14-sha256
diffie-hellman-group16-sha512
diffie-hellman-group18-sha512
diffie-hellman-nhóm-trao đổi-sha1
diffie-hellman-nhóm-trao đổi-sha256
ecdh-sha2-nistp256
ecdh-sha2-nistp384
ecdh-sha2-nistp521
đường cong25519-sha256
đường cong25519-sha256@libssh.org
gss-gex-sha1-
gss-group1-sha1-
gss-group14-sha1-
[root@vm01 ~]# sshd -T | grep kex
thuật toán gssapikex gss-gex-sha1-,gss-group1-sha1-,gss-group14-sha1-
kexalgorithms curve25519-sha256,curve25519-sha256@libssh.org,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh -sha2-nistp25
Như bạn có thể thấy từ đầu ra, các máy khách có thể sử dụng các thuật toán này. Không có đề cập đến các thuật toán vi phạm trong sshd_config, ngay cả trong mật mã
tiết diện:
Mật mã chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
Bất kỳ trợ giúp đánh giá cao.
Lưu ý tôi đang sử dụng OpenSSH 7.4
sshd_config
Mật mã chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
MAC hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512,hmac-sha2-256
KexAlgorithms curve25519-sha256,curve25519-sha256@libssh.org,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh -sha2-nistp256,diffie-hellman-group-exchange-sha256,-diffie-hellman-group1-sha1,diffie-hellman-group-exchange-sha1