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
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
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:
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.
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).
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.
You can then, open this file in any text editor and copy the key body to be added to the dashboard.