blob: 265d478312b2e5e8bc32ceba63c4a2012ca8095b [file] [log] [blame]
Mohammed Naser86615772024-06-01 10:02:09 -04001# SPDX-License-Identifier: Apache-2.0
Mohammed Naser735efe22024-06-26 23:46:25 -04002# Atmosphere-Rebuild-Time: 2024-06-26T17:38:39Z
Mohammed Naser37694382024-04-02 21:11:31 -04003
Mohammed Naserd30f18d2024-04-17 01:20:43 -04004ARG RELEASE
5
6FROM registry.atmosphere.dev/library/openstack-runtime:${RELEASE}
Mohammed Naserda994232024-04-13 12:34:01 -04007RUN <<EOF bash -xe
8apt-get update -qq
9apt-get install -qq -y --no-install-recommends \
10 openssh-server \
11 openssh-client
12EOF
13RUN <<EOF bash -xe
14chown -R nova: /etc/ssh
15mkdir /var/run/sshd
16chmod 0755 /var/run/sshd
17EOF
Mohammed Naser0c779092024-06-05 10:35:00 -040018COPY <<EOF /etc/ssh/sshd_config.d/00-hardening.conf
19Ciphers aes256-ctr,aes192-ctr
20MACs hmac-sha2-512,hmac-sha2-256
21KexAlgorithms diffie-hellman-group-exchange-sha256
22HostKeyAlgorithms ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
23MaxAuthTries 3
24EOF