AWS

EC2

Connect to EC2

#!/bin/bash
ssh -i key.pem ec2-user@public-dns

Copy files from EC2 to local

scp -i key.pem ec2-user@public-dns:path/to/file /your/local/directory/files/to/download

# zip directory beforehand
zip -r all.zip /your/ec2/directory/

# download all files
scp -i key.pem ec2-user@public-dns:~/* /your/local/directory/files/to/download

Onboarding

Install Git

sudo yum install git -y

Install Node (see also AWS Docs):

Switch to dedicated version (check nodejs.org):

Use Screen to use different sessions for different scripts for example.

Last updated