# Connecting to a AWS EC2 instance

* This is to be followed on how to connect to a AWS EC2 instance using Session Manager

1\. In the top search bar type **EC2**, than click **EC2** in the dropdown

![](https://3885248957-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoE4wMO1dMVDOGDjh0En7%2Fuploads%2F2AEMzkm46hwP6EWpX5vN%2Fimage.png?alt=media\&token=8b577829-3656-4329-a87d-1ea8205e5bf3)

2\. Click on **Instances**

![](https://3885248957-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoE4wMO1dMVDOGDjh0En7%2Fuploads%2F2Szln6xbsimRIkvD6epR%2Fimage.png?alt=media\&token=eb066d64-9dee-47d4-bcd6-8d89e450ba11)

3\. Search for the instance either by Name or Instance ID

4\. Click **Connect**

![](https://3885248957-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoE4wMO1dMVDOGDjh0En7%2Fuploads%2FkUBwpI6hDoenqkgeXnkv%2Fimage.png?alt=media\&token=40627549-6f65-4390-98b9-94a2e6ef6e55)

**5**. Click **Session Manager**, than **Connect**

![](https://3885248957-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoE4wMO1dMVDOGDjh0En7%2Fuploads%2FvJyutOJjRCJC6H732F2u%2Fimage.png?alt=media\&token=cef60f05-c976-4797-a418-331d6bf30f90)

**6**. This should bring you to a shell where you need to type `sudo bash` after which you will be greeted with the following screen:

You are now connected. Done!
