File tree Expand file tree Collapse file tree
emulation-system/base_images/docker_files/kali_base/docker Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,6 +47,12 @@ RUN echo "alias ll='ls -al'" >> /root.bashrc &&\
4747# Setup root SSH
4848RUN mv /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
4949ADD docker_files/common/sshd_config /etc/ssh/sshd_config
50+ # The rolling kali-last-release base ships OpenSSH >= 10, whose sshd delegates
51+ # password authentication to PAM and no longer verifies /etc/shadow directly.
52+ # The shared sshd_config sets "UsePAM no" (which is fine on the pinned Debian/Ubuntu
53+ # bases that still do their own shadow check), so csle_admin password logins would
54+ # be rejected here. Enable PAM so password authentication works on this base.
55+ RUN sed -i 's/^UsePAM no/UsePAM yes/' /etc/ssh/sshd_config
5056
5157# Setup password-less sudo
5258RUN mv /etc/sudoers /etc/sudoers.bak
You can’t perform that action at this time.
0 commit comments