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.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.