Browse Source

Revert "Revert "Disable password auth on dib images""

This reverts commit 08a258c96b.

Note the difference here is using all lower case for the options.  It
seems sshd is sensitive to the case.

Change-Id: Ide639491bcdedfb2ee8f76e8d0bfe83dde45805f
changes/93/591593/2
Ian Wienand 4 years ago
parent
commit
51486fe0c1
  1. 7
      nodepool/elements/infra-package-needs/post-install.d/89-sshd

7
nodepool/elements/infra-package-needs/post-install.d/89-sshd

@ -25,4 +25,9 @@ set -o pipefail
# NOTE(pabelanger): Glean configures access for root user, so allow us to
# properly login.
sed -i -e'/PermitRootLogin/d' /etc/ssh/sshd_config \
&& echo "PermitRootLogin Yes" >> /etc/ssh/sshd_config
&& echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
# NOTE(clarkb): Glean configures ssh keys only and not passwords. Disable
# unnecessary password auth.
sed -i -e '/PasswordAuthentication/d' /etc/ssh/sshd_config \
&& echo "PasswordAuthentication no" >> /etc/ssh/sshd_config

Loading…
Cancel
Save