Connecting your EC2 Instance via SSH

 So, you have created your EC2 instance, but you just have your instance running; then how can you interact with your instance?

You need a terminal or a GUI session to do that. So, that's what we're gonna today.

We are going to access our instance from a Kali Linux machine via a terminal emulator program called PuTTY.

Before starting with this, make sure that you've installed PuTTY on your Windows/Linux machine.

Let's get going!

Step 1: Select the instance you wanna connect with. I will be selecting the Assisi-EC2 machine.


Step 2: Let me start the instance, so we can connect to it.


Step 3: Create a key pair. Give it a proper name - mostly, I'd recommend using the same name as your instance. Select ".ppk" as the key format as we're gonna be using PuTTY. Finally, click on "Create a key pair". It''ll get downloaded to your machine. Save it coz' we'd be using it to connect to our EC2 instance.



Step 4: Click on "Connect".


Step 5: Click on "SSH client" tab. Here, some instructions would be given. Just copy the Public DNS name to your clipboard.


Look, I've downloaded the key pair during Step 3. I've placed it in my "Desktop" folder. 


Step 5: Open PuTTY. Under Connection>SSH>Auth , select the private key that you've downloaded by clicking on "Browse" button.


Step 6: Moving to "Session" tab, paste the Public DNS name in that "Hostname" box. Then click on "Open".


Step 7: Just click on "Accept" and move on. You don't need to know the details.


Step 8: Voila! Now you have can access and interact with your EC2 instance.









































Comments

Popular posts from this blog

Mounting an EBS volume to an EC2 Linux instance