Mohammed Naser | 8661577 | 2024-06-01 10:02:09 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: Apache-2.0 |
vexxhost-bot | c2fd428 | 2024-06-26 07:04:25 +0200 | [diff] [blame] | 2 | # Atmosphere-Rebuild-Time: 2024-06-25T13:53:44Z |
Mohammed Naser | 3769438 | 2024-04-02 21:11:31 -0400 | [diff] [blame] | 3 | |
Mohammed Naser | d30f18d | 2024-04-17 01:20:43 -0400 | [diff] [blame] | 4 | ARG RELEASE |
| 5 | |
| 6 | FROM registry.atmosphere.dev/library/openstack-runtime:${RELEASE} |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 7 | RUN <<EOF bash -xe |
| 8 | apt-get update -qq |
| 9 | apt-get install -qq -y --no-install-recommends \ |
| 10 | openssh-server \ |
| 11 | openssh-client |
| 12 | EOF |
| 13 | RUN <<EOF bash -xe |
| 14 | chown -R nova: /etc/ssh |
| 15 | mkdir /var/run/sshd |
| 16 | chmod 0755 /var/run/sshd |
| 17 | EOF |
Mohammed Naser | 0c77909 | 2024-06-05 10:35:00 -0400 | [diff] [blame] | 18 | COPY <<EOF /etc/ssh/sshd_config.d/00-hardening.conf |
| 19 | Ciphers aes256-ctr,aes192-ctr |
| 20 | MACs hmac-sha2-512,hmac-sha2-256 |
| 21 | KexAlgorithms diffie-hellman-group-exchange-sha256 |
| 22 | HostKeyAlgorithms ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521 |
| 23 | MaxAuthTries 3 |
| 24 | EOF |