SSH to Instance using Mac and Linux
Setup:
- 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) Open up a terminal window, and type this command:
chmod 600 ~/Downloads/NAMEOFPEMFILE.pem
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
- Everything should now be setup and ready to go.