Connecting to an EC2 server
In this stage, we are going to connect to the EC2 server via SSH:
- In the list of instances, there is a Connect button. Click it:
Figure 4.22 – Connecting an instance
- Under the SSH client tab, you can see the steps to connect to the EC2 machine:
Figure 4.23 – Steps to connect
- In this example, I will use Mac Terminal in order to connect to the machine via SSH. I am copying the command in the example and pasting it into Terminal. You can also use different SSH applications such as PuTTY and WinSCP. Please make sure the PEM key file is in the same location where you execute the command or that you set the right path for the PEM key file:
Figure 4.24 – Connecting via Terminal
- Type
yes
to confirm the connection with this machine:
Figure 4.25 – Confirmation for the machine
Congratulations...