Skip to content
Browse files

Enable password logins on AWS

  • Loading branch information...
NEMS Linux
NEMS Linux committed Aug 24, 2019
1 parent 374afde commit 5340747e199f423ae72d132e2337f4f62dc3b6f8
Showing with 4 additions and 0 deletions.
  1. +4 −0 build/030-user
@@ -43,5 +43,9 @@ fi
userdel -f -r pine64 # Sopine
userdel -f -r admin # Amazon Web Services

# Ensure password authentication is enabled (otherwise cannot login to some features on AWS, nor become root)
# It is up to you to ensure 1) you are using strong passwords and 2) you only have YOUR IP address(es) allowed to connect in your firewall
/bin/sed -i -- 's,PasswordAuthentication no,PasswordAuthentication yes,g' /etc/ssh/sshd_config

# Remove sudo message
echo "Defaults lecture = never" > /etc/sudoers.d/privacy

0 comments on commit 5340747

Please sign in to comment.
You can’t perform that action at this time.