Skip to content
Michael Sumner edited this page May 12, 2016 · 4 revisions

#PuTTY on MS-Windows

Find this at http://tinyurl.com/h3fsg8c

Installing PuTTY

Go to the PuTTY download page

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

Then download and run the Windows MSI installer putty-0.67-installer.msi

https://the.earth.li/~sgtatham/putty/latest/x86/putty-0.67-installer.msi

Be warned: if you rather choose to download the stand alone components you will have to do some extra configuration work.

Installing Xming

Go to the Xming download page.

https://sourceforge.net/projects/xming/

Then download the Xming installer. Run the installer, accepting all of the defaults as you step through the wizard.

Putty configuration

Again, hold up a Red card if you need help!

Prepare your key for use with PuTTY

  1. Fire up PuTTYgen (Start menu -> All Programs -> PuTTY->PuTTYgen)
  2. Load an existing private key file by clicking the button marked "Load"
  3. In the resultant "Load private key:" dialogue Change the drop down from "PuTTY Private Key Files (.ppk)" to "All Files (.*)"
  4. Browse to the location of the private key you downloaded earlier (should have .pem extension)
  5. Select your file and click "Open"
  6. PuTTYgen should show a "Successfully imported foreign key..." dialogue. If so, click the "OK" button.
  7. You can now enter a descriptive comment if you so desire.
  8. You can also enter and confirm a passphrase. Note: If you use a passphrase you will have to enter this passphrase whenever you use the key.
  9. Then click the "Save private key" button. Note: Make sure that you save it in a secure location. By example a shared network drive is not a secure location!

Use the prepared key with PuTTY

  1. Run PuTTy (Start menu -> All Programs -> PuTTY -> PuTTY)
  2. Open up the tree to the left to the "Auth" node (Connection -> SSH -> Auth)
  3. Click the "Browse..." button below the label "Private key file for authentication"
  4. In the resultant dialogue, find and select your prepared key then click "Open"
  5. In the tree on the left select the "Session" node (you might have to scroll it up to see this node)
  6. In the "Host Name (or IP address) edit box enter: ubuntu@<The IP number of your running VM> For example: [email protected] <- This is an example IP number, probably not yours! Here `ubuntu is the name of the user account on the remote machine that we are connecting as.
  7. Enter a name for the session in the "Saved Sessions" edit box, then click the "Save" button. This saves all your settings (including the private key), and allows you simply "Load" them the next time you run PuTTY. It's a convenience to save setup time.
  8. Click the "Open" button to connect to your running VM.
  9. On your first time connecting to a computer, you will be asked if you trust the computer you are connecting to. Ordinarily you can click "Yes". If you are connecting to a new computer is reusing an IP number that you used before you will also get this message. Ordinarily you can click "Yes".
  10. You should now have a terminal session on your remote computer!
  11. Green Card!

Enable X11 forwarding in PuTTY

  1. Run PuTTy (Start menu -> All Programs -> PuTTY -> PuTTY)
  2. Load the previous settings that you saved. (Select the "Session" node in the tree on the left, select your session name in the list, then hit the "Load" button.
  3. Open up the tree to the left to the "X11" node (Connection -> SSH -> X11)
  4. Check "Enable X11 forwarding"
  5. In the "X display location" edit box enter: localhost:0
  6. In the tree on the left select the "Session" node (you might have to scroll it up to see this node)
  7. If you want to, enter a new name for the session with X11 forwarding enabled in the "Saved Sessions" edit box, then click the "Save" button. This saves all your settings (including the private key), and allows you simply "Load" them the next time you run PuTTY. It's a convenience to save setup time.
  8. Click the "Open" button to connect to your running VM.
  9. You should now have a terminal session on your remote computer!
  10. Green Card!

Cyberduck

Install this for Windows or Mac for transferring files.

https://cyberduck.io/?l=en