SV-274064r1120180_rule
V-274064
SRG-OS-000067-GPOS-00035
AZLX-23-001315
CAT II
10
Configure Amazon Linux 2023 SSH private key files to have a passcode.
Create a new private and public key pair that utilizes a passcode with the following command:
$ sudo ssh-keygen -n [passphrase]
Verify Amazon Linux 2023 SSH private key files have a passcode.
For each private key stored on the system, use the following command:
$ sudo ssh-keygen -y -f /path/to/file
If the contents of the key are displayed, this is a finding.
V-274064
False
AZLX-23-001315
Verify Amazon Linux 2023 SSH private key files have a passcode.
For each private key stored on the system, use the following command:
$ sudo ssh-keygen -y -f /path/to/file
If the contents of the key are displayed, this is a finding.
M
5700