<!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>
I do not believe that it is damaged.  I have tried this out three times now (deleting the key files between each attempt).
<br>
<br>
-Kenny<br>
<br>
On Mon, 2013-07-15 at 17:30 +0200, Tomas Babej wrote:<br>
<blockquote type="CITE">On Monday 15 of July 2013 15:13:49 Armstrong, Kenneth Lawrence wrote:<br>
<br>
> Good thought. I just tried it and it still fails:<br>
<br>
> <br>
<br>
> [karmstrong@linuxtest<mailto:karmstrong@linuxtest> ~]$ ipa user-mod karmstrong --sshpubkey "$(cat .ssh/id_rsa.pub)"<br>
<br>
> ipa: ERROR: invalid 'sshpubkey': invalid SSH public key<br>
<br>
> <br>
<br>
 <br>
<br>
Are you sure the ssh public key file is not damaged? The following sequence of commands works for me (verified now):<br>
<br>
 <br>
<br>
[root@vm-154 tbabej]# ssh-keygen<br>
<br>
Generating public/private rsa key pair.<br>
<br>
Enter file in which to save the key (/root/.ssh/id_rsa): /home/tbabej/test_rsa<br>
<br>
[..]<br>
<br>
 <br>
<br>
[root@vm-154 tbabej]# ipa user-mod admin --sshpubkey "$(cat test_rsa.pub)"<br>
<br>
---------------------<br>
<br>
Modified user "admin"<br>
<br>
---------------------<br>
<br>
User login: admin<br>
<br>
Last name: Administrator<br>
<br>
Home directory: /home/admin<br>
<br>
Login shell: /bin/bash<br>
<br>
[..]<br>
<br>
 <br>
<br>
Tomas<br>
<br>
</blockquote>
<br>
</body>
</html>