5

I have posh-git installed. In git bash ssh -v works, but with powershell it doesnt. What am I missing, and what should I do.

I get the following error in powershell as I type ssh -v in powershell

ssh : The term 'ssh' is not recognized as the name of a cmdlet, function, script file, 
or operable program. Check the spelling of the name, or if a path was included, 
verify that the path is correct and try again.
At line:1 char:1 + ssh -v
+ ~~~
+ CategoryInfo          : ObjectNotFound: (ssh:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
4
  • 9
    Verify that C:\Program Files\Git\usr\bin is in your path (on a 64bits machine). Try to type $env:Path in a powershell windows. Commented Oct 4, 2016 at 6:50
  • Wow..That was it...Thank You so much.. Commented Oct 4, 2016 at 7:46
  • 7
    And fix by running this command: $env:Path +=";C:\Program Files\Git\usr\bin" Commented Oct 3, 2017 at 9:25
  • 2
    hi refer this link for ssh issue- [link] (hurryupandwait.io/blog/…) the author has tutored nicely for resolution Commented Dec 9, 2017 at 3:31

1 Answer 1

2

Add C:\Program Files\Git\usr\bin to PATH system variable

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.