Generate SSH Keys

The instructions below will walk you through the steps of generating an SSH key, based on the system you use:
  • Windows
  • Linux/MacOS

For Windows

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

 

2. 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.

               

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

               

  • 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

             

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

For Linux/MacOS

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

1. Initiate the generation with the following command:

$ ssh-keygen -t rsa

2. 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_rsa.pub file

~ $ cd .ssh
~/.ssh $ ls 

id_rsa       id_rsa.pub   known_hosts  

~/.ssh $ cat id_rsa.pub 

    • to get the private key for authentication at your remote GIT repository via SSH - access the id_rsafile

~ $ cd .ssh
~/.ssh $ ls  
id_rsa       id_rsa.pub   known_hosts  
~/.ssh $ cat id_rsa

3. Copy the generated SSH key.

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

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

  • Generate SSH Keys
  • 1 Kasutajad peavad seda kasulikuks
Kas see vastus oli kasulik?

Seotud artiklid

Add SSH keys

When you have your SSH key generated, you can add it to your Apiqcloud account. In order to...

Apiqcloud SSH Gate Overview

SSH (Secure Shell) is a protocol used to connect securely to a remote container and execute the...

Overview

Apiqcloud PaaS supports access via SSH in one of the following ways:Web SSH:Access to a separate...

SSH Access

  Now let’s see how you can access your Apiqcloud account with all of its environments and...

SSH Access to GIT Repository

  With Apiqcloud you can easily deploy your application from any remote public or private...