DbAppWeb.com

Menu
  • Home
  • Linux
  • HP-UX
  • macOS
  • Windows
  • Web Servers
  • App Servers
  • Storage

Disable SSH Server Weak and CBC Mode Ciphers in Linux

July 15, 2021 DbAppWeb Admin

NESSUS tool found below vulnerability in a Linux server.

70658 – SSH Server Weak and CBC Mode Ciphers Enabled

 

Synopsis

The SSH server is configured to use Cipher Block Chaining.

 

Description

The SSH server is configured to support Cipher Block Chaining (CBC) encryption. This may allow an attacker to recover the plaintext message from the ciphertext.

Note that this plugin only checks for the options of the SSH server and does not check for vulnerable software versions.

Solution

Disable SSH Server Weak and CBC Mode Ciphers in Linux

Follow the steps given below to disable ssh server weak and cbc mode ciphers in a Linux server.

  • Edit the default list of MACs by editing the /etc/ssh/sshd_config file and remove the arcfour, arcfour128, arcfour25, aes128-cbc, 3des-cbc, blowfish-cbc, cast128-cbc, aes192-cbc and aes256-cbc ciphers from the list.
    # vi /etc/ssh/sshd_config
    
    .
    .
    Ciphers aes128-ctr,aes192-ctr,aes256-ctr
    .
    .
  • Save the file and restart the ssh service using the below command.
    # service sshd restart
    Stopping sshd:                                             [  OK  ]
    Starting sshd:                                             [  OK  ]
  • Once that was done and sshd was restarted, you can check the list of ciphers by using the below command:
    # sshd -T |grep ciphers
    ciphers aes128-ctr,aes192-ctr,aes256-ctr
  • After disabling weak MACs if you try ssh using these ssh server weak and cbc mode ciphers, you will get the below message:
    # ssh -oMACs=hmac-md5 <server>
    no matching cipher found: client aes128-cbc server aes128-ctr,aes192-ctr,aes256-ctr
  • Now, ssh server weak and cbc mode ciphers have been disabled in your Linux system.
Last Updated: July 15, 2021

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Telegram (Opens in new window)
  • Click to share on WhatsApp (Opens in new window)
Prev Article
Next Article
Tags:Linux SSH Sys Admin System Security

Leave a Reply Cancel Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  • Popular
  • Recent

Categories

  • Android (2)
  • Blogger (16)
  • Domain and Hosting (1)
  • Hardware Issues (7)
  • HP-UX (55)
  • HPE Data Protector (9)
  • IBM Lotus Notes (2)
  • IBM WebSphere Application Server (16)
  • Internet Tips & Tricks (15)
  • iOS (8)
  • JBoss/WildFly Application Server (2)
  • Linux (76)
  • macOS (15)
  • Microsoft Windows (31)
  • News and Updates (11)
  • Oracle Database (5)
  • SSL/TLS (1)
  • Storage Servers (23)
  • Tools/Softwares (1)
  • VMware ESXi (17)
  • Web Servers (14)
  • WordPress (5)

Archives

DbAppWeb.com

Solution of Database, Application and Web Server Problems

About DbAppWeb.com

One Stop Solution for Database Server, Application Server and Web Server Problems.

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

DbAppWeb on Social Media

Copyright © 2025 DbAppWeb.com
Terms and Conditions   Theme by MyThemeShop.com