Skip to content

Commit

Permalink
Change: Disable PAM for Fedora to work around broken SSH login
Browse files Browse the repository at this point in the history
  • Loading branch information
n-thumann committed Jan 20, 2025
1 parent c863f85 commit c7dac09
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion operating_systems/fedora/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ RUN if [ "$UPDATED" = true ]; then dnf upgrade -y; fi \
&& echo "demo:demo" | chpasswd \
&& ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N "" \
&& ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N "" \
&& ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N ""
&& ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N "" \
# Workaround to fix SSH login (see VTA-641)
&& echo "UsePAM no" > /etc/ssh/sshd_config.d/01-disable-usepam.conf

CMD [ "/usr/sbin/sshd", "-D" ]

Expand Down

0 comments on commit c7dac09

Please sign in to comment.