Setting up Putty and Connecting

3) Setting up Putty and connecting to your instance

Putty is a free tool that allows windows users to connect to Linux or Unix computers.  Here we will show you how to set up Putty and connect to your new AWS instance

The first step is to change the format of your key-pair file to something Putty can understand

  • Open up PuttyGen.  You should see:

  • In the Conversions menu, choose "Import Key":

  • Now, you will need to navigate to the .pem file that you downloaded in step 2, perhaps you called it MyWageningen?  Click Open, and you will see:

  • Now, in the "Key passphrase" and "Confirm passphrase" you must enter a password.  You may choose your own, or, for the course you may use the word training.
  • Once you have typed your password in both boxes click "Save private key" and save the file, call it MyWageningen (this time it will be saved as a .ppk file).  Save it in the same place as your MyWageningen.pem file.

The second stage is to find out the public DNS of the instance so we can tell Putty how to connect.

  • In the amazon web console, choose "Instances" from the menu on the left:

  • You will see a table of all of your running instances (which I assume for most of you will be only 1)
  • Check the box next to your instance
  • In the bottom half of the window, information about your instance will appear.  Scroll down in the section until you see "Public DNS:"

  • This is unique to your instance, it will not be the same as mine or any other!
  • It will be similar to that which was used to write this page: ec2-107-22-24-101.compute-1.amazonaws.com
  • Copy the Public DNS of your instance into the clipboard (On Windows, select the text, hold down the Ctrl key and hit C)

Now we need to set up Putty to access this server.

  • Start Putty.  You will see something like this:

  • In the Host Name (or IP address) box, paste in your Public DNS:

  • In the tree on the left, click the + next to SSH, select "X11" and make sure the check box next to "Enable X11 forwarding" is selected:

  • In the tree on the left, choose "Auth", click "Browse", navigate to your .ppk file MyWageningen.ppk:

  • In the tree on the left, scroll all the way to the top, choose "Session".  In the "Saved Sessions" box type Wageningen and click "Save":

  • We are now ready to connect.  Click "Open".
  • If you get a message about Adding a key, choose "Yes".

  • You should see this:

  • the user we must log in as is ubuntu.  Type ubuntu and hit Enter.
  • You will then be asked for your passphrase/password:

  • We suggested you use training.  If this is the case, enter training (or the password you used) and hit Enter
  • You should now see this:

 

If so, then you are ready for the Linux training part of the course!!!

If not, please contact one of the course administrators who will be able to assist you.

Next - Introduction to Linux