I have installed latest Ubuntu 22.04.2 version on the vm but after performing the security assessment our security team found following ssh vulnerability. what changes we need to make to fix this vulnerability?
Vulnerability_Risk Detail:
SSH Weak Message Authentication Code Algorithms
Summary:
The SSH server supports cryptographically weak Hash-based message authentication codes (HMACs) including MD5 or 96-bit Hash-based algorithms.
Remediation:
Disable any MD5 or 96-bit HMAC algorithms within the SSH configurationConsult the product documentation for instructions to disable any insecure MD5 or 96-bit HMAC algorithms within the SSH configuration.
I have already tried following config changes but still i can see both weak algorithms ( umac-64-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,hmac-sha1)
:
Here are the changes i have set in the sshd_config file.
MACs hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1