Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Steps to Generate and Use SSH Keys for LDAP Users

Generate SSH Key Pair

On a Unix-based System (Linux/macOS):

...

  1. Download and open PuTTYgen.
  2. Click on "Generate" and move your mouse around to create randomness.
  3. Save the private key (e.g., id_rsa.ppk) and the public key (e.g., id_rsa.pub).


Add the public keys to LDAP

Using CLI

ipa user-mod <USERNAME> --sshpubkey="ssh-rsa <key_content>"
 

# Example for single key
ipa user-mod alice --sshpubkey="$(cat /home/alice/.ssh/id_rsa.pub)" 


# To upload multiple keys, pass a comma-separated list of keys with a single --sshpubkey option:
ipa user-mod alice --sshpubkey="key1==,key2==,key3=="

...