HOW-TO Disable CBC Ciphers and weak MAC Algorithms in Unix / Linux

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
PAM Self-Hosted Articles
1 min read
L6 Presenter
No ratings

You may have run a security scan or your auditor may have highlighted the following SSH vulnerabilities and you would like to address them.

 
  1. SSH Server CBC Mode Ciphers Enabled
  2. SSH 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

 
Rate this article:
  • 57485 Views
  • 0 comments
  • 0 Likes
Article Dashboard
Version history
Last Updated:
‎11-04-2025 09:01 PM
Updated by: