Two ways:
The first way
1. Run ssh-keygen under the git bash. (It will put the generated file in the $Home folder)。
2. cat the pub key in the home folder and add it to the git website.
3. Done (the git command should be run under the bash)
The second way
1. Use PUTTYGEN.EXE to generate the key.
1. Use PUTTYGEN.EXE to generate the key.
2. Add the pub key to the website (copy the string from PUTTYGEN).
3. Add the private key to PAGEANT
4. set GIT_SSH to point to plink.exe
5. Done. (the git command should be run under the cmd.exe)
--
Feng
没有评论:
发表评论