...

/

Bastion Hosts and EC2 Instance Connect Endpoint

Bastion Hosts and EC2 Instance Connect Endpoint

Learn about the Bastion hosts and EC2 Instance Connect Endpoint and their usefulness.

Bastion hosts

A bastion host allows an SSHSecure Shell for Linux instance to connect through the terminal. connection between the internet and EC2 instances provisioned in a private subnet. Internet traffic routes through the bastion host to access the private EC2 instances. It mainly filters incoming traffic and prevents suspicious traffic from entering the network.

EC2 instance is used as a bastion host and must be provisioned in a public subnet. The security group of the bastion host must allow SSH connections to the EC2 instances in the private subnets.

Press + to interact
Bastion host in a public subnet
Bastion host in a public subnet

Note: The security group of the bastion host must be restricted as much as possible to prevent incoming traffic from unwanted sources to avoid hacking attacks.

Drawbacks of bastion hosts

Despite the usage of a bastion host, using it as a main component for exposing private resources to the internet is not recommended. Below are a few reasons that make the bastion host less secure and more prone to attacks.

  • A bastion host is ...