Connect to your EC2 instance (original) (raw)
Your Amazon EC2 instance is a virtual server in the AWS Cloud. To log on to your instance, you must establish a connection to the instance. How you connect to your instance depends on the operating system of the instance and the operating system on the computer that you use to connect to the instance. The following table details the requirements for each connection method.
Connection option | Instance operating system | Inbound traffic rule | IAM permissions | Instance profile role | Software on instance | Software on connecting system | Key pair |
---|---|---|---|---|---|---|---|
SSH client | Linux | Yes | No | No | No | Yes | Yes |
EC2 instance connect | Linux | Yes | Yes | No | Yes ¹ | No | No |
PuTTY | Linux | Yes | No | No | No | Yes | Yes |
RDP client | Windows | Yes | No | No | No | Yes | Yes ² |
Fleet Manager | Windows | No | Yes | Yes | Yes ¹ | No | Yes |
Session Manager | Linux, Windows | No | Yes | Yes | Yes ¹ | No | No |
EC2 instance connect endpoint | Linux, Windows | Yes | Yes | No | No | No | Yes |
¹ The required software is only pre-installed on certain AMIs. You can manually install the required software as needed on supported operating systems.
² The key pair is only required if you are using the randomly generated password for the local Administrator user account.
For more information, see the documentation for the connection option that you intend to use.
Connection options
- Connect to your Linux instance using an SSH client
- Connect to your Linux instance using PuTTY
- Connect to your Windows instance using an RDP client
- Connect to your Windows instance using Fleet Manager
- Connect using Session Manager
- Connect using EC2 Instance Connect
- Connect using EC2 Instance Connect Endpoint
Launch from an AWS Marketplace AMI
General connection prerequisites
Did this page help you? - Yes
Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
Did this page help you? - No
Thanks for letting us know this page needs work. We're sorry we let you down.
If you've got a moment, please tell us how we can make the documentation better.