How to Connect to the AMI with PuTTY

To connect to the AMI Gateway with PuTTY you must:
gateway90
To connect to the AMI Gateway with PuTTY you must:
  • Convert the PEM private key to the PPK format
  • Create a login profile
puttyGenConversion.png
Convert the Private Key to the PPK Format
The private key created by Amazon uses the industry standard PEM format. To connect to Gateway appliance using PuTTY or any other program that uses a different private key format, you need to convert the key pair into that application’s native format. Consult the documentation for your SSH program if you are unsure of its support for private key formats.
The following steps describe how to convert the key file using PuTTY. For other programs, please consult the user documentation accompanying the program.
  1. Download and run 
    puttygen.exe
    This opens the PuTTY Key Generator.
  2. From the PuTTY Key Generator menu, select 
    Conversions
     > 
    Import Key
    . Select the key pair PEM file created previously.
  3. Click 
    Save private key
     in the PuTTY Key Generator dialog. 
    A warning about saving the key without a passphrase appears. Creating a passphrase is optional. 
    • To save the key without a passphrase, click 
      Yes
      When logging into the CA API Gateway AMI, no prompt to enter a passphrase appears.
    • To create a passphrase, click 
      No.
      Complete the 
      Key passphrase
       and 
      Confirm passphrase
       fields, then click 
      Save private key
       again. 
      When logging into the CA API Gateway AMI, you must enter this passphrase.
  4. Enter a file name for the new private key. You can use the same name as before.
    Verify that the type is set to 
    PuTTY Private Key Files (*.ppk) 
    and click 
    Save
    .
  5. Close the PuTTY Key Generator dialog.
Create a Login Profile
In PuTTY, create a new login profile with the Public DNS for your instance. You will use this profile to log into the CA API Gateway each time. 
To create a Login Profile in PuTTY:
  1. Launch PuTTY.
  2. Return to the Amazon EC2 Console Dashboard and click 
    Instances
     under Instances in the Navigation pane.
  3. In the bottom pane, locate the Public DNS of your instance and copy it.
  4. Switch back to PuTTY and paste the DNS into both the 
    Host Name
     and 
    Saved Sessions
     fields.
  5. In the Category tree at the left, access:
    Connection >  
    SSH > 
     Auth 
    This opens the Options controlling SSH authentication page.
  6. In the 
    Authentication parameters
     section, click 
    Browse
     and locate the PPK private key file. 
  7. In the Category tree at the left, click 
    Session
    .
  8. Click on your EC2 instance under 
    Saved Sessions
     and then click 
    Save
    .
You have now associated the private key with this Saved Session and can use it to log into the
CA API Gateway
.
Connect to the Instance
Select the session you created and click 
Open
.