Add SSH keys from Windows

On Windows, there are a number of ways to create an SSH keypair, including RailsInstaller, PuTTY, and Cygwin. Engine Yard supports the RailsInstaller method because it is straight-forward.

This is a two step process:

  • Create keys
  • Add keys to Engine Yard Cloud

To create keys

RailsInstaller automatically creates SSH keys in ~/.ssh C:\Users\<user_name>\.ssh. To re-create them, follow the steps below. This procedure uses unix-style commands and paths because that is what git-bash uses.

  1. Navigate to Start -> Programs -> RailsInstaller -> git-bash.

  2. Change directories into your home folder:

    cd ~ 
  3. Generate the SSH keys: (make sure to use a strong password or Engine Yard Cloud will reject it)

    ssh-keygen -t rsa 
  4. Change the permissions of the SSH folder and keys:

    chmod -R 644 ~/.ssh 

You now have a private and public key: ~/.ssh/id_rsa and ~/.ssh/

To add keys to Engine Yard Cloud

  1. Locate and copy the public key on your local machine:

    a. Open the public key (~/.ssh/ in Notepad.

    notepad ~/.ssh/

    b. Copy the key to the clipboard.

  2. In your Dashboard, click SSH Public Keys.

  3. Click Add new SSH public key.

  4. Enter a name in the Name field to identify the key.

  5. Open the public key (~/.ssh/ in Notepad.

    notepad ~/.ssh/ 
  6. Paste the key (copied in Step 1b) into the Public Key field.

  7. Select the environments that you want to add this key to. If you don’t have any environments, this key is automatically added to the ones you create.

  8. Click Add Key.
    You receive a confirmation that your ssh public key has been created and added to your Engine Yard account.

Next step

Install your public key to your application environment(s).



Article is closed for comments.