Properly quote root's key in the sshd hook

This commit is contained in:
Michael Brown 2014-02-11 12:12:59 -05:00
parent cc4097184d
commit edfebd9ebb
1 changed files with 2 additions and 1 deletions

View File

@ -22,4 +22,5 @@ run:
cmd:
- mkdir -p /var/run/sshd
- mkdir -p /root/.ssh
- echo $ssh_key >> /root/.ssh/authorized_keys
- echo "$ssh_key" >> /root/.ssh/authorized_keys
- chmod 640 /root/.ssh/authorized_keys