Instead of typing in the content of a public key I want to pass the content of it as an input. The command used is
ipa user-mod user --sshpubkey='ssh-rsa AAA ........'
This work.
When I do
ipa user-mod user --sshpubkey=`cat ~/.ssh/id_rsa.pub`
or other combinations I get an error.
ipa: ERROR: command 'user_mod' takes at most 1 argument.
How can I convert the text file to a single argument after the equal sign?