Add bind-tools, map ssh directories and sshd configuration script

This commit is contained in:
AJ NOURI 2016-04-19 10:26:33 +02:00
parent a0970c0fb6
commit 16a79d5961
2 changed files with 13 additions and 0 deletions

View File

@ -10,5 +10,8 @@ RUN apk add nano
RUN apk add curl
RUN apk add links
RUN apk add iputils
RUN apk add bind-tools
RUN apk add rsync
RUN apk add bash
VOLUME /root/.ssh /etc/ssh /data
ADD start-ssh.sh start-ssh.sh

View File

@ -0,0 +1,10 @@
#!/bin/sh
ssh-keygen -t rsa -b 4096 -f /etc/ssh/ssh_host_rsa_key -N ''
ssh-keygen -t dsa -b 1024 -f /etc/ssh/ssh_host_dsa_key -N ''
ssh-keygen -t ecdsa -b 256 -f /etc/ssh/ssh_host_ecdsa_key -N ''
ssh-keygen -t ed25519 -b 256 -f /etc/ssh/ssh_host_ed25519_key -N ''
ssh-keygen -f /root/.ssh/id_rsa -N ''
echo 'root:gns3' | chpasswd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/" /etc/ssh/sshd_config
/usr/sbin/sshd && echo "SSHD started: $(pgrep sshd)"