Skip to main content
All CollectionsJelasticSSH
How to generate SSH Key
How to generate SSH Key
Updated over a week ago

The instructions in this article will guide you through generating an SSH Key, based on the system you use:

1- Linux/macOS

2- Windows

For Linux/macOS

To generate a new SSH key (the RSA type is required) using the ssh-keygen tool:

Important!: Due to insufficient security levels, DSA keys are not supported by Scaleforce.

1- Execute the following command:

ssh-keygen -t rsa
01-ssh-keygen-generate-rsa-key.png

Adjust the desired keys location and passphrase upon your need (in this example we will proceed with the default values).

2- You can view the value of both, public and private SSH keys using the cat command (as in the image above). For example:

cat /home/jelastic/.ssh/id_rsa.pub
02-vie-ssh-key-value-console.png

3- Now, you add the generated SSH key to your 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:

03-putty-keygen-tool-download.png

2- Set the following parameters:

  • the SSH-2 RSA key type

  • the number of bits (e.g. 2048)

Important!: Due to insufficient security levels, DSA keys are not supported by Scaleforce.

04-putty-generate-rsa-ssh-key.png

Click Generate.

3- Depending on the needed kye type follow the respective steps:

  • Copy the generated key from the output field at the top of the window to get the public key for SSH access to your account (via local client).

05-putty-view-public-key-value.png
  • Expand the Conversions menu and select the Export OpenSSH key option, to get the private key for authentication at your remote GIT repository via SSH.

06-putty-export-private-key.png

You can then, open this file in any text editor and copy the key body to be added to the dashboard.

Did this answer your question?