Appendix: PuTTY

Topics

[Note]Note
This section is for Windows users using PuTTY. If you are using another operating system or SSH client, you can skip this section.

PuTTY is a free SSH client for Windows. Other tools that form part of the PuTTY suite are PuTTYgen, a key generation program, and pscp, a secure copy command line tool. This guide outlines the additional steps required to use PuTTY with Amazon EC2.

[Note]Note

The different PuTTY tools are separate applications and may require multiple downloads.

PuTTY does not natively support the private key format generated by Amazon EC2. Fortunately, PuTTY has a tool called PuTTYgen, which can convert keys to its internal format.

[Note]Note

You should have generated a private key as described in Running an Instance and saved the key to a file named something like id_rsa-gsg-keypair.

This section assumes that you have converted an Amazon EC2 generated private key file to a PuTTY private key file and have successfully launched an instance.

The use of pscp is nearly identical to scp.

To use pscp

  1. Convert your private key to PuTTY's format. The command to copy the private key and X.509 certificate, as shown in Preparing for Bundling, should look like the following example.

    $ scp -i id_rsa-gsg-keypair pk-HKZYKTAIG2ECMXYIBH3HXV4ZBZQ55CLO.pem cert-HKZYKTAIG2ECMXYIBH3HXV4ZBZQ55CLO.pem root@ec2-72-44-33-55.compute-1.amazonaws.com:
  2. To run the same command with pscp, using the private key in PuTTY's format as generated in the preceding section, the command should look like the following example.

    C:\> pscp -i id_rsa-gsg-keypair.ppk pk-HKZYKTAIG2ECMXYIBH3HXV4ZBZQ55CLO.pem cert-HKZYKTAIG2ECMXYIBH3HXV4ZBZQ55CLO.pem root@ec2-72-44-33-55.compute-1.amazonaws.com: