[Freeipa-users] [freeipa-users] errors when trying to add public SSH key to user

Tomas Babej tbabej at redhat.com
Mon Jul 15 15:30:15 UTC 2013


On Monday 15 of July 2013 15:13:49 Armstrong, Kenneth Lawrence wrote:
> Good thought.  I just tried it and it still fails:
> 
> [karmstrong at linuxtest<mailto:karmstrong at linuxtest> ~]$ ipa user-mod karmstrong --sshpubkey "$(cat .ssh/id_rsa.pub)"
> ipa: ERROR: invalid 'sshpubkey': invalid SSH public key
> 

Are you sure the ssh public key file is not damaged? The following sequence of commands works for me (verified now):

[root at vm-154 tbabej]# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): /home/tbabej/test_rsa
[..]

[root at vm-154 tbabej]# ipa user-mod admin --sshpubkey "$(cat test_rsa.pub)"
---------------------
Modified user "admin"
---------------------
  User login: admin
  Last name: Administrator
  Home directory: /home/admin
  Login shell: /bin/bash
[..]

Tomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/freeipa-users/attachments/20130715/3bfbffd0/attachment.htm>


More information about the Freeipa-users mailing list