Skip to content

Commit

Permalink
Changes: Disable PAM for fedora
Browse files Browse the repository at this point in the history
  • Loading branch information
sudiptagreenbone committed Jan 17, 2025
1 parent 414363c commit 25fabd5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions operating_systems/fedora/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ RUN if [ "$UPDATED" = true ]; then dnf upgrade -y; fi \
&& dnf clean all \
&& useradd demo \
&& echo "demo:demo" | chpasswd \
&& sed -i 's/UsePAM yes/UsePAM no/' /etc/ssh/sshd_config \
&& 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 ""
Expand Down

0 comments on commit 25fabd5

Please sign in to comment.