Simple script for adding your SSH key to an AWS instance
- Connect to the AWS instance and open a terminal in your browser
- Run the following commands (copy and pastels )
cd ~ # make sure you're in your home directory
wget --no-cache https://raw.githubusercontent.com/jdavenport-vervio/aws-add-ssh-key/master/aws-add-key.sh
chmod +x aws-add-key.sh
./aws-add-key.sh
DO NOT RUN AS ROOT
- It may not work as AWS is a bit strict on running downloaded scripts as root (understandably so)
- Running it as root will put the SSH key in the wrong location
- The script will check for this and will not run as root