File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ RUN apt-get update --yes && \
1414RUN apt-get install -y openssh-server && \
1515 mkdir /var/run/sshd && \
1616 sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin no/' /etc/ssh/sshd_config && \
17- sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config
17+ sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config && \
18+ sed -i 's/#Port 22/Port 8822/' /etc/ssh/sshd_config
1819
1920RUN apt-get clean && rm -rf /var/lib/apt/lists/*
2021
@@ -39,7 +40,7 @@ USER ${NB_UID}
3940
4041RUN sed -i '/eval "$(conda shell.bash hook)"/c\e xport PATH="/opt/conda/bin:/opt/conda/condabin:/opt/conda/bin:/opt/conda/condabin:/opt/conda/bin:$PATH"\n eval "$(conda shell.bash hook)"' ~/.bashrc
4142
42- EXPOSE 22
43+ EXPOSE 8822
4344
4445ENTRYPOINT ["tini" , "-g" , "--" ]
4546CMD ["/usr/local/bin/start-nb-with-ssh-dev.sh" ]
You can’t perform that action at this time.
0 commit comments