duplicated public keys in authorized keys

30 views
Skip to first unread message

Hiu

unread,
Sep 20, 2012, 11:11:22 PM9/20/12
to puppet...@googlegroups.com
hi Admin,

How are you?

I have a easy ssh_authorized_key like below

       ssh_authorized_key { "hiu@$fqdn":
                name => "hiu@$fqdn",
                ensure => present,
                type => ssh-rsa,
                key => $keys,
                user => hiu,
       }

I manage to inject my public key onto the puppet clients, but the problem is whenever the puppet agent refresh itself with -runinterval=XX, then, the public key re-created again. as the result, I have a lot duplicated public keys result like below in my authorized_keys. How can i avoid the duplicated keys?

ssh-rsa XXXXXXX
ssh-rsa XXXXXXX
ssh-rsa XXXXXXX

please advise. thanks!

wen1023 wu

unread,
Sep 22, 2012, 11:35:25 PM9/22/12
to puppet...@googlegroups.com
hi

  please delete the common information from the key value ,may be you used 
ssh-keygen -t rsa -C "XXX".

2012/9/21 Hiu <yen...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/cKNAQRj2WCMJ.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

Reply all
Reply to author
Forward
0 new messages