Generate SSH Key

For Windows

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

download puttygen

Specify the following parameters:

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

Click Generate.

key settings

To get the private key for authentication at your remote GIT repository via SSH – select the Save private key button and specify the path and name of the file it will be saved to.

save private key

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

For Linux/MacOS

Generate a new SSH key (dsa or rsa type) using the ssh_keygen tool:

1. Initiate generation with the following command:

$ ssh-keygen -t dsa

  1. Navigate to the corresponding file depending on the key type you need:
  • to get the public key for SSH access to your account – access the id_dsa.pub file

~ $ cd .ssh
~/.ssh $ ls
id_dsa       id_dsa.pub   known_hosts  

~/.ssh $ cat id_dsa.pub

  • to get the private key for authentication at your remote GIT repository via SSH – access the id_dsa file

~ $ cd .ssh
~/.ssh $ ls  
id_dsa       id_dsa.pub   known_hosts  

~/.ssh $ cat id_dsa

  1. Copy the generated SSH key.

Note: that in above example, we generated a dsa SSH key. You can also use a rsa key. To generate it, follow the same method, but state the rsa value instead of the dsa one.

Now, you can add the generated SSH key to your Jelastic account.

 

in Jelastic

0

0

Related Articles

Leave a Reply