„Dockerfile“ ändern
This commit is contained in:
@@ -19,8 +19,7 @@ RUN mkdir -p /run/sshd && \
|
||||
sed -i "/#ListenAddress 0.0.0.0/c\ListenAddress 0.0.0.0" /etc/ssh/sshd_config && \
|
||||
sed -i "/#HostKey \/etc\/ssh\/ssh_host_rsa_key/c\HostKey \/debian\/.ssh\/ssh_host_rsa_key" /etc/ssh/sshd_config && \
|
||||
sed -i "/#HostKey \/etc\/ssh\/ssh_host_ecdsa_key/c\HostKey \/debian\/.ssh\/ssh_host_ecdsa_key" /etc/ssh/sshd_config && \
|
||||
sed -i "/#HostKey \/etc\/ssh\/ssh_host_ed25519_key/c\HostKey \/debian\/.ssh\/ssh_host_ed25519_key" /etc/ssh/sshd_config && \
|
||||
echo "UsePrivilegeSeparation no" >> /etc/ssh/sshd_config
|
||||
sed -i "/#HostKey \/etc\/ssh\/ssh_host_ed25519_key/c\HostKey \/debian\/.ssh\/ssh_host_ed25519_key" /etc/ssh/sshd_config
|
||||
|
||||
RUN mkdir $DATA_DIR && \
|
||||
useradd -d $DATA_DIR -s /bin/bash $USER && \
|
||||
|
Reference in New Issue
Block a user