blob: 9f7cbccea3df1f5bcd18f373f92eea8cef595eca [file] [log] [blame]
vexxhost-bota62d9312024-06-01 21:13:59 +02001# SPDX-License-Identifier: Apache-2.0
vexxhost-bot4a8f0912024-06-28 22:34:23 +02002# Atmosphere-Rebuild-Time: 2024-06-28T12:14:26Z
Mohammed Naser37694382024-04-02 21:11:31 -04003
Mohammed Naser19c6c8a2024-04-18 01:47:10 -04004ARG RELEASE
5
Yaguang Tangae1f4102024-12-13 22:27:22 +08006FROM harbor.atmosphere.dev/library/openstack-runtime:${RELEASE}
Mohammed Naserd28fbaf2024-04-08 17:15:00 -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
vexxhost-bot410f5112024-06-05 20:52:28 +020018COPY <<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