Commit 91190709 authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

docker: add ssh config to dist image

increases connection limits, disables host fingerprint checking, enables persistent connections
parent ef4daf6b
......@@ -5,5 +5,8 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /run/sshd \
&& ssh-keygen -N '' -f ~/.ssh/id_rsa \
&& cat ~/.ssh/id_rsa.pub >~/.ssh/authorized_keys
&& cat ~/.ssh/id_rsa.pub >~/.ssh/authorized_keys \
&& mkdir ~/.ssh/controls
COPY dist/ssh_config /etc/ssh/ssh_config.d/simbricks.conf
COPY dist/sshd_config /etc/ssh/sshd_config.d/simbricks.conf
CMD ["/usr/sbin/sshd","-D", "-p", "2222"]
Host *
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
ControlPath ~/.ssh/controls/%r@%h:%p
ControlPersist 1h
ControlMaster auto
MaxSessions 2048
MaxStartups 2048
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment