Skip to content

Instantly share code, notes, and snippets.

@CliffyMk
Last active September 29, 2019 12:54
Show Gist options
  • Save CliffyMk/e74f3312230a61f6b0880575081a2d03 to your computer and use it in GitHub Desktop.
Save CliffyMk/e74f3312230a61f6b0880575081a2d03 to your computer and use it in GitHub Desktop.
Allocate the Elastic IP
To Connect your instance
MAC
Traverse to your key(.pem) file.
*) go to your key(.pem file) location
make sure the key isnt public
*) chmod 400 carols-free-ec2.pem
ssh into your instance
*) ssh -i "carols-free-ec2.pem" 18.190.7.34
Use Apt to install your packages.
My MEAN stack was fullfilled through apt package manager
Copy files to Server
SCP
scp -r -i(identity file) source.pem.file source file-url destination
scp -r -i ~location/to/your/key.pem ./config ubuntu@elastic-ip:~/path/to/your/destination
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment