Guest User

Untitled

a guest
Apr 22nd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. 1. Install Putty and related utilities
  2. 1. Set system environment variable in Windows(Control Panel\System and Security\System --> and clicking on "Advanced system settings" in the left pane. Then click on "Environment Variables") GIT_SSH=%path_to_plink.exe% (Note plink.exe goes into wherever you installed Putty)
  3. 1. Generate a ssh key using puttygen.exe (ssh2-rsa, 4096, comment=GitLab, and set a passphrase)
  4. 1. Add key to pageant.exe and the public key to your GitLab profile
  5. 1. Ensure you start a new command shell so that git recognizes the GIT_SSH value
  6. 1. Try these two commands to check connection first. This should give you a popup window that authenticates connection
  7.  
  8.  
  9. 1. `set Git
  10. putty git@gitlab.com:%user%/%repo.git%`
  11.  
  12. Usage:
  13. 1. Start pagent.exe from Putty folder
  14. 1. Add key to pageant.exe
Add Comment
Please, Sign In to add comment