Skip to content

Commit

Permalink
Enable password logins on AWS
Browse files Browse the repository at this point in the history
  • Loading branch information
NEMS Linux committed Aug 24, 2019
1 parent 374afde commit 5340747
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/030-user
Original file line number Diff line number Diff line change
Expand Up @@ -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.