Add an SSH key to an Environment

To use a public key generated for your development machine, the key must be uploaded through the dashboard.

The process consists of two steps:

  • Add an SSH key
  • Install key to an Environment

To add an SSH key to Engine Yard Cloud

  1. Locate and copy the public key on your local machine. The default location of this file is:

  2. In your Dashboard, click on the Tools drop-down.
  3. Click SSH Public Keys.
  4. Click Add a new SSH public key.
  5. Enter a name for the key.
  6. Paste the key (from Step 1) into the Public Key field.
  7. Click Add Key.

    You receive a confirmation that your SSH public key has been created and added to your Engine Yard account.

To Install key to an Environment

After a public key is uploaded your Engine Yard account, it needs to be associated with one or more environments. This ensures that instances contained within the environment have the SSH key installed and are accessible via an SSH client.

The process to install an SSH key:

  • Update the environment
  • Install keys on instances

To update an environment with an SSH key

  1. In your Dashboard, click the environment name.
    For example, the “production” environment of the “MyApp” application.

  2. On the Environment page, click Edit Environment.

  3. Locate the SSH Keys section and select the keys you want to install.

  4. Click Update Environment to save your changes.

  5. (Optional) Repeat these steps for each environment you want to install a key on.

To install keys on instances

After an environment has been updated with one or more new keys, the keys need to be deployed to the environment instances.

  1. In your Dashboard, click the environment that you want to deploy your key(s) to.
  2. Click Apply to install the keys.

After the keys are deployed, you can connect to your instances via SSH.

Next step

Connect via SSH to your application instance(s).



Article is closed for comments.