Skip to content

Instantly share code, notes, and snippets.

@ipcrm
Created January 22, 2016 19:02
Show Gist options
  • Save ipcrm/49e2804534101c5fe9d0 to your computer and use it in GitHub Desktop.
Save ipcrm/49e2804534101c5fe9d0 to your computer and use it in GitHub Desktop.
SSHkey with file_line
$sshkey = @("SSHKEY"/L)
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDfue8T42mIcudzTzFOVagdqn1TuZwJVPNThbqYl9o6ZwWZcw+J/L4ZZB2sl/scTxPYA4O/ywpb95FMwFWi35w4Phk2xL+vBZtKLw/gKZXuRoC84zeoeUynJMl+eBxxe/ENDVTrkmvweqlYXwlwgA229hpkY4k35aNQw9VLQE35LuQEpCvA+d+JxfEJKzBDDE00vhNVHj1iBylhdXDYCtyOnpCO0LUf4G5/4nafn093ioc7lun8p215KZQLiD94w8zBVruRQIlESHqKDkLx4HHiGo+v6JGQYFqoRoKJVpI0gTm7xyNgkY6pEiA0d+/3ayU6cc89emKbYYgUQP5rVA9d mcadorette@mac-c02q2cd8g8wp
| SSHKEY
file_line{'authorized_keys':
path => '/tmp/authorized_keys',
line => $sshkey,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment