loading...empty;done;/ssh-generate-key/:-uriGenerate SSH Key | iNET.elastic Dev Docs

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

Follow the steps in one of the following sections (based on your operating system):

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

ssh keygen generate rsa key

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

2. 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/iNET.elastic/.ssh/id_rsa.pub

view ssh key value console

3. 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:

putty keygen tool download

2. For example, specify the following parameters:

  • choose the SSH-2 RSA key type
  • enter the desired number of bits (e.g. 2048)

putty generate rsa ssh key

Click Generate.

3. 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 putty view public key value

  • 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 putty export private key

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

What’s next?