Skip to content

Commit

Permalink
Don't use key pair
Browse files Browse the repository at this point in the history
  • Loading branch information
NEMS Linux committed Aug 24, 2019
1 parent 5340747 commit 850fb82
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions build/030-user
Expand Up @@ -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
Expand Down

0 comments on commit 850fb82

Please sign in to comment.