| # SPDX-License-Identifier: Apache-2.0 |
| # Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z |
| |
| ARG RELEASE |
| |
| FROM registry.atmosphere.dev/library/openstack-runtime:${RELEASE} |
| RUN <<EOF bash -xe |
| apt-get update -qq |
| apt-get install -qq -y --no-install-recommends \ |
| openssh-server \ |
| openssh-client |
| EOF |
| RUN <<EOF bash -xe |
| chown -R nova: /etc/ssh |
| mkdir /var/run/sshd |
| chmod 0755 /var/run/sshd |
| EOF |
| COPY <<EOF /etc/ssh/sshd_config.d/00-hardening.conf |
| Ciphers aes256-ctr,aes192-ctr |
| MACs hmac-sha2-512,hmac-sha2-256 |
| KexAlgorithms diffie-hellman-group-exchange-sha256 |
| HostKeyAlgorithms ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521 |
| MaxAuthTries 3 |
| EOF |