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
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
(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:
If you get 'No such file or directory', then you can skip ahead to step 3.
2. Backup your current ssh keys:
3. Generate your keypair with ssh-keygen:
$ ssh-keygen -t rsa -C "email@address.com"
4. Enter your passphrase (and be sure to remember it!):
5. You should now have two files: id_rsa (private key) and id_rsa.pub (public key):
6. Copy the id_rsa.pub key:
7. ..and paste into CloudForge:
(1) Select the dropdown under your name (2) My Settings > Keys
8. Paste the key:
(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.
0 Comments