When following the Configure SFTP Shell Script File Transfer, document there is a step to create a public key on the Linux server which will send SFTP logs to a NetWitness Log Collector. See the Section on, Generate the Public/Private Key Pair.
The given command fails, ssh-keygen -b 1024 -t rsa
This error appears when FIPS (Federal Information Processing Standards 140-2) mode is enabled.
To be FIPS compliant any certificates or SSH Key based authentication need to be 2048 bit or higher.
Create the ssh key with 2048 bit
ssh-keygen -b 2048 -t rsa
[user@Linux ~]# ssh-keygen -b 2048 -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
The key's randomart image is:
|o+ . |
|..+ . . |
| o.. * |
|o++o* o |
|++E=.o S o |
|====+ . = |
|*= *o . o |
|* =o . . |
|*o .. |