Connect to your Linux instance using SSH - Amazon Elastic Compute Cloud

Connect to your Linux instance using SSH

There are multiple ways to connect to your Linux instance. Some ways depend on the operating system of the local computer that you connect from. Other methods are browser-based, such as EC2 Instance Connect or AWS Systems Manager Session Manager, can be used from any computer. You can use SSH to connect to your Linux instance and run commands, or use SSH to transfer files between your local computer and your instance.

Before you connect to your Linux instance using SSH, complete the following prerequisites:

Then, choose from one of the following options to connect to your Linux instance using SSH.

If you can't connect to your instance and need help troubleshooting, see Troubleshoot issues connecting to your Amazon EC2 Linux instance.