<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="GENERATOR" content="GtkHTML/4.6.5">
</head>
<body>
Good thought.  I just tried it and it still fails:<br>
<br>
[<a href="mailto:karmstrong@linuxtest">karmstrong@linuxtest</a> ~]$ ipa user-mod karmstrong --sshpubkey "$(cat .ssh/id_rsa.pub)"<br>
ipa: ERROR: invalid 'sshpubkey': invalid SSH public key<br>
<br>
<br>
On Mon, 2013-07-15 at 17:09 +0200, Jan Pazdziora wrote:
<blockquote type="CITE">
<pre>
On Mon, Jul 15, 2013 at 02:40:19PM +0000, Armstrong, Kenneth Lawrence wrote:
<font color="#737373">> I'm trying to add an SSH public key to a user, and I keep getting IPA Error 3009 or IPA Error 3008 when I try to update the page.  I have copied over the exact contents of the .ssh/id_rsa.pub file.  Even if I take the username portion out at the end of the file, I still get the same error messages.</font>
<font color="#737373">> </font>
<font color="#737373">> When I try to add it from the command line, I get:</font>
<font color="#737373">> </font>
<font color="#737373">> ipa: ERROR: invalid 'sshpubkey': invalid SSH public key</font>
<font color="#737373">> </font>
<font color="#737373">> And yes, I verified that ssh-rsa is at the beginning of the key output.</font>
<font color="#737373">> </font>
<font color="#737373">> This is on a RHEL 6 server.</font>
<font color="#737373">> </font>
<font color="#737373">> Any thoughts?</font>

Does it fail even if you do not copy-n-paste the key but let shell
expand it as

        ipa user-mod demo --sshpubkey "$( cat /tmp/demo.pub )"

?

</pre>
</blockquote>
<br>
<table cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td>-- <br>
<br>
<b><font size="2"><font color="#001b3e">Kenny Armstrong</font></font></b><br>
<i><font size="2"><font color="#001b3e">System Administrator</font></font></i> <br>
<b><font size="2"><font color="#001b3e">IS Operations</font></font></b><br>
<br>
<a href="http://www.liberty.edu/media/1616/40themail/wordmark-for-email.jpg"><img src="cid:1373901229.16869.1.camel@localhost.localdomain" align="bottom" alt="http://www.liberty.edu/media/1616/40themail/wordmark-for-email.jpg" border="0"></a><br>
<br>
<i><font size="2"><font color="#aa0000">Training Champions for Christ since 1971</font></font></i>
</td>
</tr>
</tbody>
</table>
</body>
</html>