Product SiteDocumentation Site

A.5.7. sshkey (optional) - Add an Authorized SSH Key

Use this command to add a specified SSH key to an user's authorized_keys file. The specified user must either be root, or it must be created in the Kickstart file - either automatically by an installed package, or using Section A.5.8, “user (optional) - Create User Account”.
sshkey --username=user "ssh_key"
The ssh_key must be a full SSH key fingerprint, and it must be enclosed in quotes ("") because the key may contain spaces.
--username=
The name of the user account to which you want to install the SSH key.