OpenSSH client

if you are on Windows and have problem connecting to private repository in gitlab or github try this :

  1. go to services, enable OpenSSH Authentication Agent
  2. make sure openssh is in PATH C:\Windows\System32\OpenSSH
  3. add ssh key password type ssh-add on powershell
  4. Add the environment variable $ENV:GIT_SSH=C:\Windows\System32\OpenSSH\ssh.exe to your session, or permanently to your user environment.

  5. type

git config --global core.sshCommand C:/Windows/System32/OpenSSH/ssh.exe

or

git config --global core.sshCommand C:\\Windows\\System32\\OpenSSH\\ssh.exe

which will create a .gitconfig file in home directory

[core]
    sshCommand = C:/Windows/System32/OpenSSH/ssh.exe

You'll only receive email when they publish something new.

More from Rifky Adni Putra
All posts