<div dir="ltr"><div><div><div>I'm using the C7.2 GenericCloud image with KVM and am trying to inject my own ssh key by adding it to /etc/cloud/cloud.cfg.d:<br><br>sudo virt-customize --upload ~/local/cloud/20_centos_sshkey.cfg:/etc/cloud/cloud.cfg.d/20_centos_sshkey.cfg -d c7-template<br><br></div>Contents of the file:<br><br>#cloud-config<br><br>ssh_authorized_keys:<br>  - ssh-rsa [mysshkeyhere]<br><br><br><br></div>The good news is that it puts something in the authorized_keys file (which does not occur without it). The bad news is it's complete garbage (from guestfish) -- <a href="http://pastebin.centos.org/42526/">http://pastebin.centos.org/42526/</a><br><br></div>Any suggestion on either how to fix this or a better way to inject the key for this usage? <br></div>