How to create SSH keys and upload the public key to CloudForge

How to get SSH keypair for Windows:

First Download Puttygen here > Then launch Puttygen

Once PuTTY Key Generator opens up:

(1) Click Generate > (2) Copy the Public OpenSSH key > (3) Enter a passphrase (remember it - yes, you need a passphrase) > (4) Save the Private Key

Screen_Shot_2011-12-12_at_5.29.21_PM.png

 

Notes: The saved Private Key here (4) will be used later below at the end.

Pitfall: You can also save the Public Key in Puttygen, but note that the format used by Puttygen to save public keys is not OpenSSH.

Only OpenSSH public keys are supported in CloudForge - so we recommend copy and paste your public key instead.

 

Skip to the "Load your public key to CloudForge..." below

Load your public key to CloudForge...

In your web browser: Login to CloudForge > My Settings > Key >

Paste your public OpenSSH key in the textbox > OK

ssh1.jpeg

(Pitfall... make sure to not enter any character rerturns inside your key - try resizing the textbox, textlines should resize too)

 

Now you are set! If you are using TortoiseGIT, read about the guide to enter your keys in TortoiseGIT: TortoiseGIT: Create your keys and upload the public key to Codesion.. 

 

How to get SSH keypair for Linux/Mac*:

*If you already have a keypair, simply skip to the final step on how to add keys to CloudForge

For Linux/Mac machines, we can use the commandline tool 'ssh-keygen' ..but first, let's make sure we don't already have SSH keys:

1. cd to your home .ssh directory:

ssh11.jpeg

If you get 'No such file or directory', then you can skip ahead to step 3.

2. Backup your current ssh keys:

ssh2.jpeg

3. Generate your keypair with ssh-keygen: 

$ ssh-keygen -t rsa -C "email@address.com"

ssh3.jpeg

4. Enter your passphrase (and be sure to remember it!):

ssh4.jpeg

5. You should now have two files: id_rsa (private key) and id_rsa.pub (public key):

ssh5.jpeg

6. Copy the id_rsa.pub key:

ssh6.jpeg

7. ..and paste into CloudForge:

(1) Select the dropdown under your name (2) My Settings > Keys

ssh21.jpeg

8. Paste the key:

ssh31.jpeg

(Pitfall... make sure to not enter any character rerturns inside your key - try resizing the textbox, textlines should resize too)

 

You're done! Now you can connect to your repository via SSH:


Your URL will look something like: ssh://git_myorganization@myorganization.git.cloudforge.com/myproject.git


Read more about using GIT with commandline here: Using Codesion GIT via command line. 

 

 

 

 

 

 

Have more questions? Submit a request

0 Comments

Article is closed for comments.