How to connect to an EC2 via SSH + troubleshooting

In general: Make sure the private key (pem file) on your Linux machine has 400 permissions or you will get an “Unprotected private key file” error. Make sure the username is given correctly when connecting via SSH, else you will get “Host key not found”, “Permission denied”, or “Connection closed”... [Read More]
Tags: Linux AWS EC2 SSH

AWS S3 Presigned URL

If you want to provide temporary S3 access to an object that is otherwise private, then you can generate a presigned URL. The URL will be usable for a specified period of time, after which it will become invalid. [Read More]
Tags: AWS S3 CLI