rpm包https://download.csdn.net/download/kewen_123/88279957

# 安装检测软件
rpm -i nmap-7.92-1.x86_64.rpm

# 修改配置文件
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-sha2-512,hmac-sha2-512-etm@openssh.com,hmac-sha2-256,hmac-sha2-256-etm@openssh.com
KexAlgorithms curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1

# 重启sshd
systemctl stop sshd
systemctl start sshd

# 校验
nmap --script "ssh2*" 127.0.0.1
Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐