home works snippets

SSH into AWS Ubuntu box

After a server is created and running, we will want to SSH into it. First, we need a PEM file from AWS. Grab PEM file that is associated to the AWS user account, and save it into ~/.ssh folder.

Typical example follows:

ssh -i ~/.ssh/LightsailDefaultPrivateKey-us-east-2.pem ubuntu@