Connecting to an EC2 in a Private Subnet

0 votes
I have created an EC2 in a Private Subnet. And I want to connect to it, to install software. But the EC2 only has a Private IP and no Public IP, so how do I connect to it?
Aug 23 in AWS by Harsha
25 views

1 answer to this question.

0 votes
An EC2 created in the Private Subnet will only have a Private IP and no Public IP, so it won’t be possible to connect to it directly.

Laptop -> EC2 in the Public Subnet -> EC2 in the Private Subnet

Create an EC2 in the Public Subnet and connect to it from the Laptop. From there connect to the EC2 in the Private Subnet. The EC2 in the Public Subnet is called a Jump box or a Bastion box. This is a very widely used industry practice.
answered Aug 23 by Praveen
• 700 points

Related Questions In AWS

0 votes
1 answer
+1 vote
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer