Merge pull request #3747 from sprat/fix-sshd

Fix sshd
This commit is contained in:
Rolf Neugebauer 2022-01-01 22:46:56 +00:00 committed by GitHub
commit b5bf29c0f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 14 additions and 11 deletions

View File

@ -19,7 +19,7 @@ services:
- name: rngd - name: rngd
image: linuxkit/rngd:a44c6230f1620f1d6310b95a9e9f585de73a8bd7 image: linuxkit/rngd:a44c6230f1620f1d6310b95a9e9f585de73a8bd7
- name: sshd - name: sshd
image: linuxkit/sshd:782720b1c320f4b31abd89711ac235d1d441217c image: linuxkit/sshd:4696ba61c3ec091328e1c14857d77e675802342f
binds: binds:
- /run/config/ssh/authorized_keys:/root/.ssh/authorized_keys - /run/config/ssh/authorized_keys:/root/.ssh/authorized_keys
- name: nginx - name: nginx

View File

@ -18,7 +18,7 @@ services:
- name: rngd - name: rngd
image: linuxkit/rngd:a44c6230f1620f1d6310b95a9e9f585de73a8bd7 image: linuxkit/rngd:a44c6230f1620f1d6310b95a9e9f585de73a8bd7
- name: sshd - name: sshd
image: linuxkit/sshd:782720b1c320f4b31abd89711ac235d1d441217c image: linuxkit/sshd:4696ba61c3ec091328e1c14857d77e675802342f
binds: binds:
- /run/config/ssh/authorized_keys:/root/.ssh/authorized_keys - /run/config/ssh/authorized_keys:/root/.ssh/authorized_keys
- name: nginx - name: nginx

View File

@ -15,7 +15,7 @@ services:
- name: dhcpcd - name: dhcpcd
image: linuxkit/dhcpcd:52d2c4df0311b182e99241cdc382ff726755c450 image: linuxkit/dhcpcd:52d2c4df0311b182e99241cdc382ff726755c450
- name: sshd - name: sshd
image: linuxkit/sshd:782720b1c320f4b31abd89711ac235d1d441217c image: linuxkit/sshd:4696ba61c3ec091328e1c14857d77e675802342f
files: files:
- path: root/.ssh/authorized_keys - path: root/.ssh/authorized_keys
source: ~/.ssh/id_rsa.pub source: ~/.ssh/id_rsa.pub

View File

@ -22,7 +22,7 @@ services:
- name: rngd - name: rngd
image: linuxkit/rngd:a44c6230f1620f1d6310b95a9e9f585de73a8bd7 image: linuxkit/rngd:a44c6230f1620f1d6310b95a9e9f585de73a8bd7
- name: sshd - name: sshd
image: linuxkit/sshd:782720b1c320f4b31abd89711ac235d1d441217c image: linuxkit/sshd:4696ba61c3ec091328e1c14857d77e675802342f
binds: binds:
- /run/config/ssh/authorized_keys:/root/.ssh/authorized_keys - /run/config/ssh/authorized_keys:/root/.ssh/authorized_keys
- name: nginx - name: nginx

View File

@ -28,7 +28,7 @@ services:
env: env:
- INSECURE=true - INSECURE=true
- name: sshd - name: sshd
image: linuxkit/sshd:782720b1c320f4b31abd89711ac235d1d441217c image: linuxkit/sshd:4696ba61c3ec091328e1c14857d77e675802342f
files: files:
- path: root/.ssh/authorized_keys - path: root/.ssh/authorized_keys
source: ~/.ssh/id_rsa.pub source: ~/.ssh/id_rsa.pub

View File

@ -28,7 +28,7 @@ services:
env: env:
- INSECURE=true - INSECURE=true
- name: sshd - name: sshd
image: linuxkit/sshd:782720b1c320f4b31abd89711ac235d1d441217c image: linuxkit/sshd:4696ba61c3ec091328e1c14857d77e675802342f
files: files:
- path: root/.ssh/authorized_keys - path: root/.ssh/authorized_keys
source: ~/.ssh/id_rsa.pub source: ~/.ssh/id_rsa.pub

View File

@ -23,7 +23,7 @@ services:
- name: rngd - name: rngd
image: linuxkit/rngd:a44c6230f1620f1d6310b95a9e9f585de73a8bd7 image: linuxkit/rngd:a44c6230f1620f1d6310b95a9e9f585de73a8bd7
- name: sshd - name: sshd
image: linuxkit/sshd:782720b1c320f4b31abd89711ac235d1d441217c image: linuxkit/sshd:4696ba61c3ec091328e1c14857d77e675802342f
binds: binds:
- /run/config/ssh/authorized_keys:/root/.ssh/authorized_keys - /run/config/ssh/authorized_keys:/root/.ssh/authorized_keys
- name: nginx - name: nginx

View File

@ -22,7 +22,7 @@ services:
- name: dhcpcd - name: dhcpcd
image: linuxkit/dhcpcd:52d2c4df0311b182e99241cdc382ff726755c450 image: linuxkit/dhcpcd:52d2c4df0311b182e99241cdc382ff726755c450
- name: sshd - name: sshd
image: linuxkit/sshd:782720b1c320f4b31abd89711ac235d1d441217c image: linuxkit/sshd:4696ba61c3ec091328e1c14857d77e675802342f
files: files:
- path: root/.ssh/authorized_keys - path: root/.ssh/authorized_keys
source: ~/.ssh/id_rsa.pub source: ~/.ssh/id_rsa.pub

View File

@ -19,7 +19,7 @@ onboot:
command: ["sh", "-c", "mkdir /host_var/vpnkit && mount -v -t 9p -o trans=virtio,dfltuid=1001,dfltgid=50,version=9p2000 port /host_var/vpnkit"] command: ["sh", "-c", "mkdir /host_var/vpnkit && mount -v -t 9p -o trans=virtio,dfltuid=1001,dfltgid=50,version=9p2000 port /host_var/vpnkit"]
services: services:
- name: sshd - name: sshd
image: linuxkit/sshd:782720b1c320f4b31abd89711ac235d1d441217c image: linuxkit/sshd:4696ba61c3ec091328e1c14857d77e675802342f
- name: vpnkit-forwarder - name: vpnkit-forwarder
image: linuxkit/vpnkit-forwarder:ea4dded7386b09dd647e854664b029be0a4f420f image: linuxkit/vpnkit-forwarder:ea4dded7386b09dd647e854664b029be0a4f420f
binds: binds:

View File

@ -22,4 +22,4 @@ COPY --from=mirror /out/ /
COPY etc/ /etc/ COPY etc/ /etc/
COPY usr/ /usr/ COPY usr/ /usr/
RUN mkdir -p /etc/ssh /root/.ssh && chmod 0700 /root/.ssh RUN mkdir -p /etc/ssh /root/.ssh && chmod 0700 /root/.ssh
CMD ["/sbin/tini", "/usr/bin/ssh.sh"] CMD ["/sbin/tini", "-s", "/usr/bin/ssh.sh"]

View File

@ -16,3 +16,6 @@ config:
- /sys:/sys - /sys:/sys
capabilities: capabilities:
- all - all
devices:
- path: all
type: a

View File

@ -28,7 +28,7 @@ onboot:
- /lib:/lib # for ifconfig - /lib:/lib # for ifconfig
services: services:
- name: sshd - name: sshd
image: linuxkit/sshd:782720b1c320f4b31abd89711ac235d1d441217c image: linuxkit/sshd:4696ba61c3ec091328e1c14857d77e675802342f
- name: getty - name: getty
image: linuxkit/getty:3c6e89681a988c3d4e2610fcd7aaaa0247ded3ec image: linuxkit/getty:3c6e89681a988c3d4e2610fcd7aaaa0247ded3ec
env: env: