How do you connect to a Linux EC2 instance using SSH?
I first launch a Linux EC2 instance and download the private key pair. Then I configure the security group to allow SSH traffic on port 22 from my IP address. I set the private key permissions using chmod 400 and connect using the SSH command with the private key, username and public IP address.