Updates
This commit is contained in:
16
configEditor/ConfigEditor.Dockerfile
Normal file
16
configEditor/ConfigEditor.Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM ubuntu:20.04
|
||||
|
||||
RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install -y openssh-server git
|
||||
RUN mkdir /var/run/sshd
|
||||
RUN echo 'root:$1$jgBLBi/m$3Dk1spVwbXoeZxW4nmoU6.' | chpasswd -e
|
||||
RUN sed -i 's/#*PermitRootLogin prohibit-password/PermitRootLogin yes/g' /etc/ssh/sshd_config
|
||||
|
||||
# SSH login fix. Otherwise user is kicked off after login
|
||||
RUN sed -i 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' /etc/pam.d/sshd
|
||||
|
||||
# ENV NOTVISIBLE "in users profile"
|
||||
# RUN echo "export VISIBLE=now" >> /etc/profile
|
||||
|
||||
EXPOSE 22
|
||||
CMD ["/usr/sbin/sshd", "-D"]
|
||||
|
||||
Reference in New Issue
Block a user