Properly quote root's key in the sshd hook
This commit is contained in:
parent
cc4097184d
commit
edfebd9ebb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue