SV-261342r996488_rule
V-261342
SRG-OS-000067-GPOS-00035
SLEM-05-255085
CAT II
10
Create a new private and public key pair that uses a passcode with the following command:
> sudo ssh-keygen -n <passphrase>
Verify the SSH private key files have a passcode.
For each private key stored on the system, use the following command (with the example of "/etc/ssh/ssh_host_dsa_key"):
> ssh-keygen -y -f /etc/ssh/ssh_host_dsa_key
Load key "/etc/ssh/ssh_host_dsa_key": Permission denied
If the contents of any key are displayed, this is a finding.
V-261342
False
SLEM-05-255085
Verify the SSH private key files have a passcode.
For each private key stored on the system, use the following command (with the example of "/etc/ssh/ssh_host_dsa_key"):
> ssh-keygen -y -f /etc/ssh/ssh_host_dsa_key
Load key "/etc/ssh/ssh_host_dsa_key": Permission denied
If the contents of any key are displayed, this is a finding.
M
5596