Viewing SSH Private Keys

To view the SSH private keys registered on the Rhapsody server, navigate to View>Certificate and Key Manager to display the Certificate and Key Manager and select the SSH Private Keys tab:

If you are connecting to an engine that does not support SSH key management, then the Certificate and Key Manager does not display the SSH Public Keys and SSH Private Keys tabs.

The tab provides the following information:

Field Description
Alias

The unique user-defined name for the key.

Key aliases must be unique across all certificates and keys in Rhapsody.

Algorithm The encryption algorithm used (RSA or DSA).
Key Size The key bit length.
Fingerprint MD5 hash of the key.

You can perform the following actions from the tab via buttons or the right-click menu:

Action Description
Import... Add an SSH private key.
Export... Export an SSH private key.
Remove Delete an SSH private key.
Show Uses Open the Security Object Uses dialog to display the components an SSH private key is being used in. Double-click a component to view or edit its configuration properties.
Filter Perform text-based filtering to filter the list of displayed SSH private keys.

Importing an SSH Private Key

SSH private keys can be imported from either OpenSSH, ssh.com, or Putty formats, and the user is prompted for a passphrase to use to decrypt the key.

To import an SSH private key:

  1. Navigate to View>Certificate and Key Manager.

  2. On the SSH Private Keys tab, select the Import... buttonThe Import SSH Private Key dialog is displayed:

  3. Enter: 
    • A name in the Key Alias field to identify the key, if required.
    • The path of the key you want to import in the Filename field or click the Browse link to locate it.
    • The passphrase in the Passphrase field.
  4. Select the OK button to import the key.
  5. If the import is successful, then the new key is added to the list. If it fails, an error message is displayed indicating the reason why it failed. Failure reasons include:

    • Duplicate key alias.
    • Specified file does not exist.
    • Specified file could not be opened.
    • Specified file is too large (you cannot import files larger than 1MB).
    • Specified file is not the appropriate type of key (you cannot load an SSH private key from the public keys page or vice versa).
    • Specified file is not an SSH key.
    • Passphrase is incorrect for an SSH private key.

Exporting an SSH Private Key

SSH private keys can only be exported using the OpenSSH private key format. If another format is desired, then a tool such as PuttyGen can be used to convert between the formats.

The 'Export SSH private keys' access right is required to export SSH private keys. By default, this privilege is only given to the root Administrator user.

To export an SSH private key:

  1. Navigate to View>Certificate and Key Manager.

  2. On the SSH Private Keys tab, select a private key to export and then select the Export... buttonThe Export SSH Private Key dialog is displayed:

  3. Enter a path in the Filename field or click the Browse... link to select a path to save the key to that location.
  4. Enter a password in the Password and Confirm fields.
  5. Select the OK button to export the private key. The OK button becomes available only when the mandatory fields have been entered (all fields are mandatory).

Removing an SSH Private Key

To remove an SSH private key:

  1. Navigate to View>Certificate and Key Manager.
  2. On the SSH Private Keys tab, select the private key you want to remove.

  3. Select the Remove button. A confirmation dialog is displayed
  4. Select the Yes button on the confirmation dialog to remove the key (you can undo the deletion by selecting the Undo Remove button).

Supported Private Key Formats

Rhapsody supports SSH private keys in the OpenSSH, ssh.com, and Putty key formats, for example:

OpenSSH Private Key Format

-----BEGIN RSA PRIVATE KEY-----
MIIEoAIBAAKCAQEAkFTRr7nVMZrv9648hfG+ednEQNedt+Cbuam6r+Ug/1TvGSkB
fxf6RWL1ASGgAFna+fun99uJgrF2F82knCa4dTMOwzkcPdhXjGNvTKlby3MH46wq
viT+aICUguQ8LDGVu2iDzhHwbsMFzpVQh+NtIl/WPxybi6zMsYjDRnVTBB54gEls
V5XNkLJc7oXyqPrWfJv5SzTbiMByN1wtHHarekM4cAdyd3VQ7WLo4DGPcZvlP/Ew
n54Ol7vTKobZ8UyHT8W771NhtypfUn14Ma4r/W1lVPuX1b0qj/EhyTN8b88EsAkR
cnicu2dn/TW59bjOQP3lnu8Uliy1u/R/tF48ZQIBJQKCAQAjG4zzZI3Ny73Udn1s
sGyaLg0kh3lkFAo0FIdbN7vrFKjcm0WNngxxvh/rhLg3b817E7M8SiheD32XFlh5
An/lKBhZAA3J2q2DA24ZkPqnG/sAB0iqyrpsck2jTEX86XdyxmU/9oaXe4vKd1jH
G6Tsr4ckG7ch+ZmS98DL8wZa8kh2L13HvsuaGy5FI/rUKFLlFuDN1LCjUnpTCf1J
XifCfAqtH55KjTRkzwbvi8O54EsAi8iznv8AB4jq41dgf5UANjhUYDX1PQwg9Bbi
VKcg1F7l7n1ilrlfI36l5n9cz/3PJ1yu1/gilA6rwwdkia7Sa9lX4qFuE2GoSGXv
Op0tAoGBAOi6dUE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CGWCmgUAAAQA6Lp1QSyd+kL2HUq5A9XmBK
CQK02H25Euy0khvjrp65I/m9/SDmGZSxW31mQmF14sqvj4uW4Fn6kTB/0oITjfWCRNugZL
47qZEA2mRdqTGOvTNF/nlDiS15IOPCu1ak5zyRjURtQP47zqCMICXWMpjQKGaU3UhMwz6K
N8t8yxxuE=
---- END SSH2 ENCRYPTED PRIVATE KEY ----

Putty Private Key Format

PuTTY-User-Key-File-2: ssh-rsa
Encryption: none
Comment: rsa-key-20140829
Public-Lines: 6
AAAAB3NzaC1yc2EAAAABJQAAAQEAkFTRr7nVMZrv9648hfG+ednEQNedt+Cbuam6
r+Ug/1TvGSkBfxf6RWL1ASGgAFna+fun99uJgrF2F82knCa4dTMOwzkcPdhXjGNv
TKlby3MH46wqviT+aICUguQ8LDGVu2iDzhHwbsMFzpVQh+NtIl/WPxybi6zMsYjD
RnVTBB54gElsV5XNkLJc7oXyqPrWfJv5SzTbiMByN1wtHHarekM4cAdyd3VQ7WLo
4DGPcZvlP/Ewn54Ol7vTKobZ8UyHT8W771NhtypfUn14Ma4r/W1lVPuX1b0qj/Eh
yTN8b88EsAkRcnicu2dn/TW59bjOQP3lnu8Uliy1u/R/tF48ZQ==
Private-Lines: 14
AAABACMbjPNkjc3LvdR2fWywbJouDSSHeWQUCjQUh1s3u+sUqNybRY2eDHG+H+uE
uDdvzXsTszxKKF4PfZcWWHkCf+UoGFkADcnarYMDbhmQ+qcb+wAHSKrKumxyTaNM
Rfzpd3LGZT/2hpd7i8p3WMcbpOyvhyQbtyH5mZL3wMvzBlrySHYvXce+y5obLkUj
+tQoUuUW4M3UsKNSelMJ/UleJ8J8Cq0fnkqNNGTPBu+Lw7ngSwCLyLOe/wAHiOrj
V2B/lQA2OFRgNfU9DCD0FuJUpyDUXuXufWKWuV8jfqXmf1zP/c8nXK7X+CKUDqvD
B2SJrtJr2VfioW4TYahIZe86nS0AAACBAOi6dUEsnfpC9h1KuQPV5gSgkCtNh9uR
LstJIb466euSP5vf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