Install Putty and related utilities
Set system environment variable in Windows(Control PanelSystem and SecuritySystem --> 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)
Generate a ssh key using puttygen.exe (ssh2-rsa, 4096, comment=GitLab, and set a passphrase)
Add key to pageant.exe and the public key to your GitLab profile
Ensure you start a new command shell so that git recognizes the GIT_SSH value
Try these two commands to check connection first. This should give you a popup window that authenticates connection
set Git putty [email protected]:%user%/%repo.git%
Usage:
Dec 23, 2019 With the ssh key just in the folder, the push was not working on the Gitlab server. I had to “add” it in the clip with the previous command. I would like to. Nov 13, 2017 This New Video shows how to generate SSH keys for GitLab Profile (2017) in user settings, option just above GPG Keys for windows OS using Git Bash GUI. It actually creates a Public SSH Key.