You may have run a security scan or your auditor may have highlighted the following SSH vulnerabilities and you would like to address them.
SSH Server CBC Mode Ciphers EnabledSSH Weak MAC Algorithms Enabled
Steps
To disable CBC mode ciphers and weak MAC algorithms (MD5 and -96), backup the current file and add the following lines into the /etc/ssh/sshd_config file.
Afterwards, restart the sshd service.
1. Backup:
# cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
2. Edit file:
# vi /etc/ssh/sshd_config
Ciphers aes128-ctr,aes192-ctr,aes256-ctr
MACs hmac-sha1,[email protected],hmac-ripemd160
3. Restart the SSHD service
# systemctl restart sshd.service
or
# service sshd restart