UBTU-16-030310 - The SSH public host key files must have mode 0644 or less permissive.

Information

If a public host key file is modified by an unauthorized user, the SSH service may be compromised.

Solution

Note: SSH public key files may be found in other directories on the system depending on the installation.

Change the mode of public host key files under '/etc/ssh' to '0644' with the following command:

# sudo chmod 0644 /etc/ssh/*key.pub

The SSH daemon must be restarted for the changes to take effect. To restart the SSH daemon, run the following command:

# sudo systemctl restart sshd.service

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_CAN_Ubuntu_16-04_LTS_V2R3_STIG.zip

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CAT|II, CCI|CCI-000366, Rule-ID|SV-215132r610931_rule, STIG-ID|UBTU-16-030310, STIG-Legacy|SV-90523, STIG-Legacy|V-75843, Vuln-ID|V-215132

Plugin: Unix

Control ID: 13b421328a14956af49be80d1d69258529406a447f376d2eba6033fa258e6535