How it works
EC2 Instance Connect provides SSH access to supported Linux instances using IAM-authorized delivery of a temporary public key. The public key is placed in instance metadata for 60 seconds, allowing the SSH daemon to use it when the connection is made. You can connect using the console, AWS CLI, or your own SSH client, subject to setup and network access.
When to use it
You want a quick shell without using the downloaded key file.
Real-world example
A support engineer investigates a Linux web server using EC2 Instance Connect from the browser. With the required permissions, instance setup, and network path in place, the engineer opens an SSH session without downloading a long-lived private key.
Key facts
- Port 22 must still be open.
- Available through the console or an SSH client on supported Linux instances.
Common pitfall
Instance Connect still requires SSH network connectivity. Allow the appropriate source to reach port 22 and provide a suitable route for the chosen connection method; a public internet route is not always required.
Often confused with
PuTTY, an SSH client for Windows that does need the key.
References
Prepared by Cloud Quest. Check current behavior and limits in the AWS documentation:
Keywords you will see in SAA-C03 questions
- browser SSH
- no key file
Understand it for real with 3D models and simulated labs
Connect the concept to a working architecture.