File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,9 @@ RUN if [ "$UPDATED" = true ]; then dnf upgrade -y; fi \
11
11
&& echo "demo:demo" | chpasswd \
12
12
&& ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N "" \
13
13
&& ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N "" \
14
- && ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N ""
14
+ && ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N "" \
15
+ # Workaround to fix SSH login (see VTA-641)
16
+ && echo "UsePAM no" > /etc/ssh/sshd_config.d/01-disable-usepam.conf
15
17
16
18
CMD [ "/usr/sbin/sshd" , "-D" ]
17
19
Original file line number Diff line number Diff line change @@ -9,7 +9,10 @@ RUN if [ "$UPDATED" = true ]; then yum upgrade -y && yum clean all; fi \
9
9
&& echo "demo" | passwd --stdin demo \
10
10
&& ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N "" \
11
11
&& (ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N "" || true) \
12
- && (ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N "" || true)
12
+ && (ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N "" || true) \
13
+ # Workaround to fix SSH login (see VTA-641)
14
+ && if [ -d /etc/ssh/sshd_config.d ]; then echo "UsePAM no" > /etc/ssh/sshd_config.d/01-disable-usepam.conf; \
15
+ else sed -i "s/UsePAM yes/UsePAM no/" /etc/ssh/sshd_config; fi
13
16
14
17
CMD [ "/usr/sbin/sshd" , "-D" ]
15
18
You can’t perform that action at this time.
0 commit comments