SSH to Instance using Mac and Linux

Setup:

  1. Make sure the PEM file that was created when you created an SSH key is in your Downloads folder.
    (Here's the link for reference: Create an SSH Key)

  2. Open up a terminal window, and type this command:

    chmod 600 ~/Downloads/NAMEOFPEMFILE.pem
  3. Now we can ssh into the instance: (NOTE: The default username is 'centos' for CentOS based images and 'ubuntu' for Ubuntu based images)

    ssh username@YOURIPADDRESS -i ~/Downloads/NAMEOFPEMFILE.pem
  4. Everything should now be setup and ready to go.