Skip to content

Instantly share code, notes, and snippets.

@iSkore
Last active October 12, 2017 11:35
Show Gist options
  • Save iSkore/7d94aa33b53f2d3375b307d4546d53bc to your computer and use it in GitHub Desktop.
Save iSkore/7d94aa33b53f2d3375b307d4546d53bc to your computer and use it in GitHub Desktop.
  • chmod 400 key.pem
  • ssh -i "nick-aws-key.pem" ubuntu@ec2-public-dns.compute-1.amazonaws.com
  • sudo apt-get upgrade
  • sudo apt-get update
  • curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
  • sudo apt-get install -y nodejs
  • sudo apt-get install -y build-essential
  • sudo apt-get install awscli
  • sudo vi /etc/ssh/sshd_config
    • PasswordAuthentication no => PasswordAuthentication yes
  • sudo useradd -d /home/nick -m nick
  • sudo passwd nick
    • enter password
  • sudo visudo
    • # User privilege specification + root ALL=(ALL:ALL) ALL + nick ALL=(ALL:ALL) ALL
  • sudo usermod -aG sudo,adm nick
  • sudo /etc/init.d/ssh restart
  • exit
  • ssh nick@ec2-public-dns.compute-1.amazonaws.com
  • sudo chsh -s /bin/bash nick
  • sudo apt-get install git make unzip libwww-perl libdatetime-perl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment