I recently joined an organization that is migrating to AWS. They created the instances without generating key pairs, and we currently only have SSH access. I want to set up Fleet Manager and/or RDP connections for each server to make troubleshooting easier. Is there a way to generate and apply a key pair to get the admin password and access the system through the EC2 console instead of using the EC2 serial console? Just to clarify, I'm working with a Windows setup using Server 2019 and 2022.
1 Answer
You can use a user data script to add your SSH public key into the instance's authorized keys. Just reboot the instance after that, and you should be able to connect easily.
Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures