Add an SSH Server with a Customer-Managed Key
Last modified on November 3, 2022
An SSH server is a combination of a specific SSH destination and the credentials to access it. This guide describes how to set up an SSH server with your own key in the Admin UI.
Before you begin, you must ensure that the server you are attempting to add is accessible from the StrongDM relay or gateway. You must have a properly functioning relay up and running, and it must be able to reach the target server before you can proceed. Setting up a relay is out of the scope of this guide, but for more information, see Relays.
Generate the Key
First generate your key. Use PEM formatting to generate your key rather than OpenSSH formatting.
Add a Server in the Admin UI
Log in to the Admin UI and select Infrastructure > Servers.
Click the add server button.
On the Add Server dialog, select SSH (Customer Managed Key) as the Server Type and set other resource properties to configure how the StrongDM relay connects to the server via SSH.
Click create to save the resource.
Configuration properties are visible when you add a Server Type or when you click to view the server’s settings. The following table describes the settings available for your SSH (Customer Managed Key) server.
|Display Name||Required||Meaningful name to display the resource throughout StrongDM; exclude special characters like quotes (") or angle brackets (< or >)|
|Server Type||Required||Select SSH (Customer Managed Key)|
|Hostname||Required||Hostname or IP address to which you are connecting, such as |
|Port||Required||Port to connect to the resource; default port value 22|
|Bind Interface||Read only||Automatically generated IP address value in the |
|Port Override||Read only||Automatically generated with a value between 1024-59999 as long as that port is not used by another resource; preferred port can be modified later under Settings > Port Overrides|
|Secret Store||Optional||Credential store location with the default set to StrongDM; to learn more, see Secret Store options|
|Username||Required||The username the relay should utilize to connect to the server via SSH (for example, |
|Username (path)||Required||Path to the secret in your Secret Store location (for example, |
|Private Key||Required||The key in either plaintext or Base64 encoding; paste the key or import the key|
|Resource Tags||Optional||Resource tags consisting of key-value pairs |
Secret Store options
By default, server credentials are stored in StrongDM. However, these credentials can also be saved in a secrets management tool.
Non-StrongDM options appear in the Secret Store dropdown if they are created under Network > Secret Stores. When you select another Secret Store type, its unique properties display. For more details, see Configure Secret Store Integrations.
Add Your Key to Your Hosts
If you have not already, add your public key to the targeted host.
Open a command prompt on the server you are adding and edit the authorized keys file for the user specified during server setup.
sudo vi ~/.ssh/authorized_keys
Append the generated public key to the end of the file, save, and exit.
Back in the Admin UI, go to the Servers section and click the server’s name to view status, diagnostic information, and setting details.
In the server settings, click the Update button.
The Admin UI displays that resource as unhealthy while the configuration is being applied. When the resource is ready, the Health icon indicates a positive, green status.
If any errors occur, please copy them into an email and send them to email@example.com.