> Hi,
> 
> I am trying to manage the file authorized_keys with puppet. I am using
> http://reductivelabs.com/trac/puppet/wiki/Recipes/Authorized_keys as
> reference.
> 
> I was not able to delete an unwanted key from the file. Unfortuantely
> there are "/" within the key:
> 
> ssh-rsa AAAAB3NzaC1yc2EAA/5GytXDjAR3XoxTR6uM= test...@test
> 
> This is a problem for the perl-command:
> 
> debug: Executing '/usr/bin/perl -ni -e 'print unless /^\Qssh-rsa
> AAAAB3NzaC1yc2EAA/5GytXDjAR3XoxTR6uM= test...@test
> \E$/' '/root/.ssh/authorized_keys''

Change /.../ to m{...} .

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


Reply via email to