Merge "Disable password auth on dib images"

This commit is contained in:
Zuul 2018-08-13 16:24:32 +00:00 committed by Gerrit Code Review
commit a106b645bd
1 changed files with 5 additions and 0 deletions

View File

@ -26,3 +26,8 @@ set -o pipefail
# properly login.
sed -i -e'/PermitRootLogin/d' /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