Table of Contents

EC2: SSH Access

General Information

Using SSH to gain access to AWS EC2 instances.

Checklist


EC2: Keys

If you generate a key pair through the Amazon console, you will download a .pem file.


You can extract just your public key and output it in RSA format that Linux authorized_keys files expect.

ssh-keygen -y -f MYKEYPAIR.pem

EC2: SSH Access

Accessing EC2 instances with a SSH key.

Pre-req Setup


EC2: Direct SSH To Public Facing System

SSH to a system's public IP/DNS.


EC2: SSH Through Bastion Host

SSH to a bastion host that is public facing and hopping from there to systems with private addresses only.