From edfebd9ebb6c1a7bc23b23a636393602fe580b35 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 11 Feb 2014 12:12:59 -0500 Subject: [PATCH] Properly quote root's key in the sshd hook --- templates/sshd.template.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/sshd.template.yml b/templates/sshd.template.yml index 79831f5..ac48523 100644 --- a/templates/sshd.template.yml +++ b/templates/sshd.template.yml @@ -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 -- 2.25.1