ssh template corrected
[discourse_docker.git] / templates / sshd.template.yml
1 params:
2 # SSH key is required for remote access into the container
3 # you may also use ssh-import-id
4 ssh_key: ""
5 # so ssh-import-id works
6
7 env:
8 HOME: /root
9
10 run:
11
12 - file:
13 path: /etc/service/sshd/run
14 chmod: "+x"
15 contents: |
16 #!/bin/sh
17 exec 2>&1
18 exec /usr/sbin/sshd -D -e
19
20 - exec:
21 hook: sshd
22 cmd:
23 - mkdir -p /var/run/sshd
24 - mkdir -p /root/.ssh
25 - echo $ssh_key >> /root/.ssh/authorized_keys