ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • How to generate ssh keys for gitlab.com on windows
    Development 2017. 2. 2. 22:49
    728x90

    Please follow steps below to generate ssh keys for gitlab.com on windows.

    1. Install puttygen
      1. You can download/install it from the URL below
      2. http://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
    2. Run puttygen
    3. By default, 'SSH-2 RSA' is checked, if not, please check it.
    4. Click 'Generate', progress bar will start to move, with message which is 'moving mouse'
      1. Don't forget moving your mouse around red eclipse below
    5. After it is generated, please type password into 'Key passphrase'
    6. type password one more time into 'Confirm passphrase'
      1. Don't forget same password should be typed
    7. Click 'Save public key'
      1. it should be saved into 'C:\Users\skysign\.ssh', if your windows user name is 'skysign'
      2. the file name of public key, should be id_rsa.pub
    8. In the menu on PuTTYGen, click 'Conversions' and click 'Export OpenSSH key'
      1. it should be saved into 'C:\Users\skysign\.ssh'
      2. it's file name should be id_rsa
    9. Copy the string which begin with 'ssh-rsa ~~~~~', on PuttyGen, actually, it is your ssh public key
    10. it should be saved into gitlab.com, copy & paste it into 'Key' on https://gitlab.com/profile/keys
    11. Now you are ready to clone any project from gitlab.com
    Please refer the example below, the passphrase is same with #5 and #6.
    D:\work2\xxx_gitlab>git clone git@gitlab.com:skysign/xxx.git
    Cloning into 'xxx'...
    Enter passphrase for key '/c/Users/skysign/.ssh/id_rsa': remote: Counting objects: 167, done. remote: Compressing objects: 100% (113/113), done. remote: Total 167 (delta 52), reused 167 (delta 52) Receiving objects: 100% (167/167), 167.22 MiB | 335 KiB/s, done. Resolving deltas: 100% (52/52), done. Checking out files: 100% (112/112), done. D:\work2\xxx_gitlab>

    728x90
Designed by Tistory.