From: Michael Brown Date: Tue, 11 Feb 2014 17:12:59 +0000 (-0500) Subject: Properly quote root's key in the sshd hook X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=edfebd9ebb6c1a7bc23b23a636393602fe580b35;p=discourse_docker.git Properly quote root's key in the sshd hook --- 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