Skip to content

Commit 0f8c557

Browse files
Merge pull request #1478 from tesshuflower/rsync-e2e-usepam-no
Rsync e2e usepam no
2 parents 11d9889 + d2cfea1 commit 0f8c557

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Dockerfile

+9-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ COPY go.sum go.sum
2323
RUN go mod download
2424

2525
# Copy the go source
26-
COPY *.go .
26+
COPY *.go ./
2727
COPY api/ api/
2828
COPY controllers/ controllers/
2929
COPY config/openshift config/openshift
@@ -162,11 +162,17 @@ RUN ln -s /keys/destination /etc/ssh/ssh_host_rsa_key && \
162162
sed -ir 's|^[#\s]*\(.*/etc/ssh/ssh_host_ecdsa_key\)$|#\1|' "$SSHD_CONFIG" && \
163163
sed -ir 's|^[#\s]*\(.*/etc/ssh/ssh_host_ed25519_key\)$|#\1|' "$SSHD_CONFIG" && \
164164
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" && \
166166
sed -ir 's|^[#\s]*\(AllowTcpForwarding\)\s.*$|\1 no|' "$SSHD_CONFIG" && \
167167
sed -ir 's|^[#\s]*\(X11Forwarding\)\s.*$|\1 no|' "$SSHD_CONFIG" && \
168168
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"/*
170176

171177
##### rsync-tls
172178
COPY /mover-rsync-tls/client.sh \

0 commit comments

Comments
 (0)