Fix host keys
This commit is contained in:
parent
6a3e784863
commit
02a006040a
|
@ -8,7 +8,7 @@ RUN useradd --create-home --groups sudo admin && \
|
|||
apt-get -y install openssh-server rsync supervisor sudo && \
|
||||
rm -rf /etc/ssh/*_key* && \
|
||||
mkdir /etc/ssh/keys && \
|
||||
sed -i -E 's/HostKey \/etc\/ssh\//HostKey \/etc\/ssh\/keys\//' /etc/ssh/sshd_config && \
|
||||
sed -i -E 's/#?\s?HostKey \/etc\/ssh\//HostKey \/etc\/ssh\/keys\//' /etc/ssh/sshd_config && \
|
||||
su -c "mkdir ~/.ssh" admin
|
||||
|
||||
COPY authorized_keys /home/admin/.ssh/authorized_keys
|
||||
|
|
Loading…
Reference in New Issue