In AWS how do you remove all the authorized keys and default passwords in an AMI and change it to the instance_id? I will using ssh with putty. How do I remove the following for example and replace with instance id?
Authorized keys found Authorized key(s) found in the following location(s): /home/ubuntu/.ssh/authorized_keys:1 /root/.ssh/authorized_keys:1Default passwords found
A default password was found for the following user(s): /etc/mysql/debian.cnf All default passwords must be removed.