Aptible PaaS logoDocs

Public Key Authentication

Public Key Authentication is a secure method for authentication, and how Aptible authenticates deployments initiated by pushing to an App's Git Remote. You must provide a public SSH key to set up Public Key Authentication.

SSH Keys

Aptible supports the following SSH key types:

  • ssh-rsa
  • ssh-ed25519
  • ssh-dss

Adding/Managing SSH Keys

If you don't already have an SSH Public Key, generate a new SSH key using this command:

ssh-keygen -t ed25519 -C "your_email@example.com"

If you are using a legacy system that doesn't support the Ed25519 algorithm, use the following:

shell ssh-keygen -t rsa -b 4096 -C "you@example.com"

Once you have generated your SSH key, follow these steps:

  1. In the Aptible dashboard, select your profile at the top right.
  2. Select SSH Keys in the dropdown that appears.
  3. Enter your password on the page that appears.
  4. Add your SSH key
  5. Copy the contents of the $HOME/.ssh/id_ed25519.pub or $HOME/.ssh/id_rsa.pub file, depending on your SSH key type, and paste them into the Public SSH Key section.
  6. Save your new key
Public Key Authentication