Dockerfile: added X11Forwarding change in /etc/ssh/sshd_config

This commit is contained in:
f4exb 2019-03-02 12:39:22 +01:00
parent c5a6956458
commit e0046b3df6
1 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,8 @@ RUN sudo apt-get update && sudo apt-get -y install \
iproute2
# Configure SSH for X-forwarding
RUN sudo sed -i '/X11UseLocalhost/c\X11UseLocalhost no' /etc/ssh/sshd_config
RUN sudo sed -i '/X11Forwarding/c\X11Forwarding yes' /etc/ssh/sshd_config \
&& sudo sed -i '/X11UseLocalhost/c\X11UseLocalhost no' /etc/ssh/sshd_config
# Prepare buiid and install environment
RUN sudo mkdir /opt/build /opt/install \