Drupal in the Cloud, Part 2B - Connecting to your AWS Instance

If you're using Linux or a Mac, this will be super easy. If you've got Windows it will be slightly harder. But only slightly.

Connecting to your Instance with Linux or a Mac

  • From the EC2 Console, locate your instance.
  • Select your instance and scroll down on the info page until you get to the Public DNS. Save this for later.
  • Open a terminal session and go to the folder that you saved the Key Pair in. Using the Public DNS address and your Key Pair name, type the following to connect to your AWS Instance:

    ssh -v -v -i *****.pem ubuntu@ec2-XX-XX-XX-XX.us-west-1.compute.amazonaws.com

Connecting to your AWS Instance with Windows

  • From the EC2 Console, locate your instance.
  • Select your instance and scroll down on the info page until you get to the Public DNS. Save this for later.
  • Download PuTTY from here. You will need both PuTTY and PuTTYGen, but if you do the full Windows installer you'll get them both.

  • Open PuTTYGen and select Conversions > Import
  • Find and select your .pem Key Pair

  • Save the private key. It will be saved as a .ppk file, a format that PuTTY can read. Once saved you can close PuTTYGen.
  • Open PuTTY and put your instance's Public DNS address in the Host Name field
  • On the left side, expand SSH, then select Auth. Click on the Browse button on the right side of the window and select the .ppk file you generated.
  • If you wish to save the connection, go back to the Session on the left hand side, type a name into the Saved Sessions and click the Save button - otherwise click Open.
  • You will be prompted to accept the public key. Accept.
  • PuTTY will prompt you for a user. For an AWS Ubuntu instance, the user name is ubuntu. Make sure it's all lower-case.
  • Congrats, you are logged into your AWS instance and are ready to install software!

To be continued...

Share this

Tags: