OpenSSH client
April 11, 2022•91 words
if you are on Windows and have problem connecting to private repository in gitlab or github try this :
- go to services, enable
OpenSSH Authentication Agent
- make sure openssh is in PATH
C:\Windows\System32\OpenSSH
- add ssh key password type
ssh-add
on powershell Add the environment variable
$ENV:GIT_SSH=C:\Windows\System32\OpenSSH\ssh.exe
to your session, or permanently to your user environment.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