Yahir commited on
Commit
316d4a9
1 Parent(s): 5b6367a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -15,7 +15,10 @@ RUN useradd -u 1000 xd
15
  RUN echo 'xd:xd' | chpasswd
16
 
17
  # Generar claves de host SSH
18
- RUN ssh-keygen -A
 
 
 
19
 
20
  EXPOSE 7860
21
 
 
15
  RUN echo 'xd:xd' | chpasswd
16
 
17
  # Generar claves de host SSH
18
+ RUN sed -ri 's/^#?PermitRootLogin\s+.*/PermitRootLogin yes/' /etc/ssh/sshd_config
19
+ RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config
20
+ RUN mkdir /root/.ssh
21
+ RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
22
 
23
  EXPOSE 7860
24