These notes capture some sample changes needed to convert a standard
machine image into one suitable for publishing on the Amazon Marketplace.
Essentially, zap any users's SSH keys, passwords, and shell history.
This info may be used should an '-ami' option be added to 'reset_sdp.sh' in the future.
#------------------------------------------------------------------------------
sudo su -
rm -rf /home/centos/.ssh/authorized_keys /root/.ssh/authorized_keys
shred -u /etc/ssh/*_key /etc/ssh/*_key.pub
# clear /etc/shadow perforce pw
passwd -d perforce
history -c
exit
history -c
exit
# |
Change |
User |
Description |
Committed |
|
#1
|
27139 |
tom_tyler |
Released HelixInstaller 2021.1.27137 (2021/01/03). |
|
|
//guest/perforce_software/helix-installer/dev/src/AMIBuilderNotes.txt |
#1
|
27137 |
tom_tyler |
Added AMI builder notes. |
|
|