privateone commited on
Commit
66451c9
·
verified ·
1 Parent(s): 65715ec

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -90,7 +90,10 @@ RUN sed -i 's/#PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config &&
90
  sed -i 's/#ChallengeResponseAuthentication yes/ChallengeResponseAuthentication no/' /etc/ssh/sshd_config && \
91
  sed -i 's/#UsePAM yes/UsePAM no/' /etc/ssh/sshd_config && \
92
  sed -i 's/#Port 22/Port 2222/' /etc/ssh/sshd_config && \
93
- echo "AllowUsers admin" >> /etc/ssh/sshd_config
 
 
 
94
 
95
 
96
  # Copy all the contents of /etc/ssh to /app/ssh
 
90
  sed -i 's/#ChallengeResponseAuthentication yes/ChallengeResponseAuthentication no/' /etc/ssh/sshd_config && \
91
  sed -i 's/#UsePAM yes/UsePAM no/' /etc/ssh/sshd_config && \
92
  sed -i 's/#Port 22/Port 2222/' /etc/ssh/sshd_config && \
93
+ echo "AllowUsers admin" >> /etc/ssh/sshd_config && \
94
+ echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config && \
95
+ echo "PubkeyAuthentication yes" >> /etc/ssh/sshd_config && \
96
+ echo "AuthorizedKeysFile .ssh/authorized_keys" >> /etc/ssh/sshd_config
97
 
98
 
99
  # Copy all the contents of /etc/ssh to /app/ssh