File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ COPY go.sum go.sum
23
23
RUN go mod download
24
24
25
25
# Copy the go source
26
- COPY *.go .
26
+ COPY *.go ./
27
27
COPY api/ api/
28
28
COPY controllers/ controllers/
29
29
COPY config/openshift config/openshift
@@ -162,11 +162,17 @@ RUN ln -s /keys/destination /etc/ssh/ssh_host_rsa_key && \
162
162
sed -ir 's|^[#\s ]*\( .*/etc/ssh/ssh_host_ecdsa_key\) $|#\1 |' "$SSHD_CONFIG" && \
163
163
sed -ir 's|^[#\s ]*\( .*/etc/ssh/ssh_host_ed25519_key\) $|#\1 |' "$SSHD_CONFIG" && \
164
164
sed -ir 's|^[#\s ]*\( PasswordAuthentication\)\s .*$|\1 no|' "$SSHD_CONFIG" && \
165
- sed -ir 's|^[#\s ]*\( GSSAPIAuthentication \)\s .*$|\1 no|' "$SSHD_CONFIG" && \
165
+ sed -ir 's|^[#\s ]*\( KbdInteractiveAuthentication \)\s .*$|\1 no|' "$SSHD_CONFIG" && \
166
166
sed -ir 's|^[#\s ]*\( AllowTcpForwarding\)\s .*$|\1 no|' "$SSHD_CONFIG" && \
167
167
sed -ir 's|^[#\s ]*\( X11Forwarding\)\s .*$|\1 no|' "$SSHD_CONFIG" && \
168
168
sed -ir 's|^[#\s ]*\( PermitTunnel\)\s .*$|\1 no|' "$SSHD_CONFIG" && \
169
- sed -ir 's|^[#\s ]*\( PidFile\)\s .*$|\1 /tmp/sshd.pid|' "$SSHD_CONFIG"
169
+ sed -ir 's|^[#\s ]*\( PidFile\)\s .*$|\1 /tmp/sshd.pid|' "$SSHD_CONFIG" && \
170
+ sed -ir 's|^[#\s ]*\( UsePAM\)\s .*$|\1 no|' "$SSHD_CONFIG" && \
171
+ sed -ir 's|^[#\s ]*\( GSSAPIAuthentication\)\s .*$|\1 no|' "$SSHD_CONFIG" && \
172
+ \
173
+ INCLUDED_SSH_CONFIG_DIR="/etc/ssh/sshd_config.d" && \
174
+ sed -ir 's|^[#\s ]*\( UsePAM\)\s .*$|\1 no|' "$INCLUDED_SSH_CONFIG_DIR" /* && \
175
+ sed -ir 's|^[#\s ]*\( GSSAPIAuthentication\)\s .*$|\1 no|' "$INCLUDED_SSH_CONFIG_DIR" /*
170
176
171
177
# #### rsync-tls
172
178
COPY /mover-rsync-tls/client.sh \
You can’t perform that action at this time.
0 commit comments