Skip to content
Permalink
Browse files

Don't use key pair

  • Loading branch information...
NEMS Linux
NEMS Linux committed Aug 24, 2019
1 parent 5340747 commit 850fb822aa8ee93fbb9df4020243c65c4b4cdcce
Showing with 9 additions and 9 deletions.
  1. +9 −9 build/030-user
@@ -21,15 +21,15 @@ platform=$(/usr/local/bin/nems-info platform)


# Amazon Web Services uses a key pair instead of password
if (( $platform == 22 )); then
if [[ -e /home/admin/.ssh/authorized_keys ]]; then
if [[ ! -e /home/nemsadmin/.ssh ]]; then
mkdir /home/nemsadmin/.ssh
fi
cp /home/admin/.ssh/authorized_keys /home/nemsadmin/.ssh/
chown nemsadmin:nemsadmin /home/nemsadmin/.ssh/authorized_keys
fi
fi
#if (( $platform == 22 )); then
# if [[ -e /home/admin/.ssh/authorized_keys ]]; then
# if [[ ! -e /home/nemsadmin/.ssh ]]; then
# mkdir /home/nemsadmin/.ssh
# fi
# cp /home/admin/.ssh/authorized_keys /home/nemsadmin/.ssh/
# chown nemsadmin:nemsadmin /home/nemsadmin/.ssh/authorized_keys
# fi
#fi

# Delete any default users and remove their home folders
userdel -f -r baldnerd # Bald Nerd's Base Images

0 comments on commit 850fb82

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