Prepare AMI for AWS Marketplace – Reset Linux ec2 Image – delete public keys, etc

Visits: 2137When preparing a public AMI for AWS EC2, you need to delete lots of security stuff, like public keys, hosts and history. Run this as ec2-user login to a new session, as even after all of this your commands from this session are only written to the bash_history file when exiting. sudo rm ~/.ssh/authorized_keys … Continue reading Prepare AMI for AWS Marketplace – Reset Linux ec2 Image – delete public keys, etc