ssh-audit/test/docker/Dockerfile

33 lines
812 B
Docker
Raw Normal View History

2019-08-22 22:04:46 +02:00
FROM ubuntu:16.04
2019-08-22 22:48:23 +02:00
COPY openssh-4.0p1/sshd /openssh/sshd-4.0p1
2019-08-22 22:04:46 +02:00
COPY openssh-5.6p1/sshd /openssh/sshd-5.6p1
COPY openssh-8.0p1/sshd /openssh/sshd-8.0p1
2019-08-26 20:45:31 +02:00
COPY dropbear-2019.78/dropbear /dropbear/dropbear-2019.78
2019-08-28 04:28:24 +02:00
COPY tinyssh-20190101/build/bin/tinysshd /tinysshd/tinyssh-20190101
2019-08-22 22:04:46 +02:00
2019-08-28 04:28:24 +02:00
# Dropbear host keys.
2019-08-26 20:45:31 +02:00
COPY dropbear_*_host_key* /etc/dropbear/
2019-08-28 04:28:24 +02:00
# OpenSSH configs.
2019-08-22 22:04:46 +02:00
COPY sshd_config* /etc/ssh/
2019-08-28 04:28:24 +02:00
# OpenSSH host keys & moduli file.
2019-08-22 22:04:46 +02:00
COPY ssh_host_* /etc/ssh/
2019-08-22 22:48:23 +02:00
COPY ssh1_host_* /etc/ssh/
2019-08-22 22:04:46 +02:00
COPY moduli_1024 /usr/local/etc/moduli
2019-08-28 04:28:24 +02:00
# TinySSH host keys.
COPY ed25519.pk /etc/tinyssh/
COPY .ed25519.sk /etc/tinyssh/
2019-08-22 22:04:46 +02:00
COPY debug.sh /debug.sh
RUN apt update 2> /dev/null
2019-08-28 04:28:24 +02:00
RUN apt install -y libssl-dev strace rsyslog ucspi-tcp 2> /dev/null
2019-08-22 22:04:46 +02:00
RUN apt clean 2> /dev/null
RUN useradd -s /bin/false sshd
RUN mkdir /var/empty
EXPOSE 22