I’d set a passphrase on an OpenSSH key that I use to connect to a git repo on my local server. It started to get annoying, and more annoying with any other tool that I tried to use with the same key as it’s seems not all tools are setup to handle the prompting for the keyphrase.
Quickest workaround: remove the passphrase with ‘ssh-keygen -p’
– when prompted give the name of the pub/priv keypair (eg id_rsa), give the current keyphrase, and then when prompted for the new keyphrase, just hit return and again to confirm.
Using Cygwin and git on windows, I ran into an issue where git was working fine in a cygwin shell, but I was trying to setup a Jenkins build accessing a git repo, and git from Windows was giving errors like this:
$ git push myremote master
error: cannot spawn c:cygwinbinssh: No such file or directory
fatal: unable to fork
Running shell commands on Windows in Cygwin this was somewhat misleading, as I wasn’t expecting it to be looking for ‘ssh.exe’.
Turns out my GIT_SSH env var was causing the issue, had to replace this:
and then all was good.