Skip to main content

Generate SSH Key

The instructions below walk you through the steps of generating an SSH key. Since the 8.0.2 version, the platform supports the following key types:

  • ECDSA
  • EdDSA
  • RSA

For Linux/MacOS

Generate a new SSH key (for example, the RSA type) using the ssh-keygen tool:

  1. Initiate generation with the following command:

1

ssh-keygen -t rsa

Locale Dropdown

If needed, adjust the desired keys location and passphrase (we’ll proceed with the default values).

  1. You can view the value of both public and private SSH keys with the cat command (the exact location is circled in the image above). For example:

1

cat /home/jelastic/.ssh/id_rsa.pub

Locale Dropdown

  1. Now, you can add the generated SSH key to your PaaS account:
  • the public key for access via SSH Gate
  • the private key for authentication at your remote GIT repository via SSH

For Windows

  1. Download and run an SSH keygen tool, for example, PuTTYgen:

Locale Dropdown

  1. For example, specify the following parameters:
  • choose the SSH-2 RSA key type
  • enter the desired number of bits (e.g. 2048)

Locale Dropdown

Click Generate.

  1. Now, depending on the type of key you need:
  • to get the public key for SSH access to your account via local client - copy the generated key from the output field at the top of the window

Locale Dropdown

  • to get the private key for authentication at your remote GIT repository via SSH - expand the Conversions menu and select the Export OpenSSH key option

Locale Dropdown

Afterward, you can open this file in any text editor and copy the key body for being added to the platform dashboard.