Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated ssh key pair instructions per Olaf's comments

It is recommended you add your an SSH key pair so you can use it to log into your VMs instead of a password. This key pair can also be used to access private Github or git repositories.


Once you have the keys set up in Morpheus, you can arrange for them to be added to new VMs when they are provisioned (last step below) - note that updating these keys or adding them to existing machines needs to be done manually.


Info

If an LDAP server was provided as part of your tenancy (an option, typically default for EUMETSAT-homed tenancies), you may prefer to add the keys to the LDAP server instead - they will then work on all machines (already provisioned or future ones) and can be updated at any time.  This section is just about "local" Morpheus-created users.


To use the keys for passwordless login, please look at one of the many guides on the Internet for your ssh client (examples below) but note you may need to transform key format in some cases.

Creating the keys

If you don't have an existing key pair already, you will need to create one.

From a Linux or Mac, you may generate it with the command (follow the instructions it prompts you with):

No Format
ssh-keygen -m pem

This creates a key pair in "PEM" format, as required by Morpheus.

If you have a key in another format (e.g. OpenSSH, PuTTY, etc), you may need to convert it.  OpenSSH can do this for its key types with ssh-keygen -m pem -f /path/to/key_to_be_converted.  For other formats, please search for an appropriate conversion mechanism or contact EWC support for help.

Adding the keys in Morpheus

  1. Go to Infrastructure - Keys & Certs.
  2. Click the  + ADD button
  3. The following screen should appear:
  4. Give a meaningful name to the key, such as your username.

    Browse for the public key, or paste its contents. It should normally be stored in:

    No Format~/.ssh/id_rsa.pub
  5. You can leave the public key field blank - Morpheus will fill this automatically by (re)generating it from the private key.
  6. Browse for the private key, or paste its contents. It For OpenSSH, it should normally be stored in:

    No Format
    ~/.ssh/id_rsa


  7. If your private key requires a passphrase, add it into the relevant text box.
  8. Save changes

...

Page properties
hiddentrue


Related issues