Appearance
EC2 connection
There are two ways to connect. The best option is to use an SSH client but the online AWS console EC2 Connect page does work well including all PM2 commands.
EC2 direct connect
Available within the AWS console. Navigate to the EC2 instance and select the Connect button for options that connect to the EC2 instance using your browser.
SSH client
The PEM file must be available on your local computer, look in ~/.ssh/. The PEM file is available on Keybase. Remember to change the permission (read only) for your local file.
sh
chmod 400 ~/.ssh/<name>.pemThe complete syntax to connect an SSH client is available on Keybase. See the file ec2-instance.secrets. The file contains additional instructions not discussed here.
sh
cd ~/.ssh/
ssh -i "<file-name>.pem" <user>@<connect-string>
# OR
ssh -i "~/.ssh/<file-name>.pem" <user>@<connect-string>
