ssh-agent not found when doing "eval $(ssh-agent -s)"

Viewed 2084

So I want to push my local repo to my remote repo on github.com but the problem is that I everytime I generate a new SSH Key and add a it to my account. it doesn't work, then I tried searching through documentations and found out that I have to start my ssh-agent first. but when I do

eval $(ssh-agent -s) it returns bash: ssh-agent: command not found

OS: Windows 10 (I'm using Git bash)

1 Answers

The ssh-agent is only needed if you have generated a private key with a passphrase.

Try ssh -Tv git@github.com to see where ssh.exe would search your key.

And make sure C:\Program Files\Git\usr\bin is in your %PATH%, since both ssh.exe and ssh-keygen.exe are there.

Related