Browse Source

check sshd_config

master
parent
commit
93332b4d1e
  1. 1
      Dockerfile

1
Dockerfile

@ -16,6 +16,7 @@ RUN rm -f /etc/ssh/ssh_host_* \ @@ -16,6 +16,7 @@ RUN rm -f /etc/ssh/ssh_host_* \
&& echo "AllowTcpForwarding no" >> /etc/ssh/sshd_config \
&& echo "ChrootDirectory %h" >> /etc/ssh/sshd_config \
&& echo "ForceCommad internal-sftp" >> /etc/ssh/sshd_config \
&& cat /etc/ssh/sshd_config \
&& touch $AUTHORIZED_KEYS_FILE \
&& chown $OWNER $AUTHORIZED_KEYS_FILE \
&& chmod 0600 $AUTHORIZED_KEYS_FILE \

Loading…
Cancel
Save