How do I add SSH Keys to DirectAdmin?

In this article, we assume that you have created the SSH Keys. If not, follow this article: how do I use SSH keys

  1. Log in to DirectAdmin, go to Advanced Features > SSH Keys.
  1. You are now on the SSH Keys page in DirectAdmin, click on Paste Key in the top right.
  2. A pop-up will open, here you paste your public key. This key starts with "ssh-ed25519" or with "ssh-rsa". Then click on the green CREATE button.
    Does your public key start with "ssh-rsa"? Then you have created an RSA key instead of an ed25519 key. This will still work, but it is an outdated and less secure key.
    Did you use this article and are you using PuTTY? Then you copied and saved the key in a file named "pubkey.txt" at step 3.

    Are you using macOS or another Linux/Unix OS? Then you can find the key in: ~/.ssh/ the key ends with .pub, so for example: id_ed25519.pub
  3. If the key is correct, you will get a green notification in the bottom right that the key is authorized.

The SSH key is now authorized, you can now use the Private Key to log in to SSH via a program like PuTTY.


Still have questions? Get in touch.