blob: 826613d9bcb7379bf0ccf6f2f8c9c470be16ce01 [file] [log] [blame]
Mohammed Naser86615772024-06-01 10:02:09 -04001# SPDX-License-Identifier: Apache-2.0
vexxhost-botc2fd4282024-06-26 07:04:25 +02002# Atmosphere-Rebuild-Time: 2024-06-25T13:53:44Z
Mohammed Naser37694382024-04-02 21:11:31 -04003
Mohammed Naserd30f18d2024-04-17 01:20:43 -04004ARG RELEASE
5
Yaguang Tang0953b612024-12-13 04:14:34 +08006FROM harbor.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 \
vexxhost-botefbef392025-01-07 01:40:09 -050010 iproute2 \
Mohammed Naserda994232024-04-13 12:34:01 -040011 openssh-server \
12 openssh-client
13EOF
14RUN <<EOF bash -xe
15chown -R nova: /etc/ssh
16mkdir /var/run/sshd
17chmod 0755 /var/run/sshd
18EOF
Mohammed Naser0c779092024-06-05 10:35:00 -040019COPY <<EOF /etc/ssh/sshd_config.d/00-hardening.conf
20Ciphers aes256-ctr,aes192-ctr
21MACs hmac-sha2-512,hmac-sha2-256
22KexAlgorithms diffie-hellman-group-exchange-sha256
23HostKeyAlgorithms ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
24MaxAuthTries 3
25EOF