Development
How to generate ssh keys for gitlab.com on windows
건이두
2017. 2. 2. 22:49
728x90
Please follow steps below to generate ssh keys for gitlab.com on windows.
- Install puttygen
- You can download/install it from the URL below
- http://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
- Run puttygen
- By default, 'SSH-2 RSA' is checked, if not, please check it.
- Click 'Generate', progress bar will start to move, with message which is 'moving mouse'
- Don't forget moving your mouse around red eclipse below
- After it is generated, please type password into 'Key passphrase'
- type password one more time into 'Confirm passphrase'
- Don't forget same password should be typed
- Click 'Save public key'
- it should be saved into 'C:\Users\skysign\.ssh', if your windows user name is 'skysign'
- the file name of public key, should be id_rsa.pub
- In the menu on PuTTYGen, click 'Conversions' and click 'Export OpenSSH key'
- it should be saved into 'C:\Users\skysign\.ssh'
- it's file name should be id_rsa
- Copy the string which begin with 'ssh-rsa ~~~~~', on PuttyGen, actually, it is your ssh public key
- it should be saved into gitlab.com, copy & paste it into 'Key' on https://gitlab.com/profile/keys
- 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