SSH doesn't work in PowerShell except when powershell.exe launched through CMD
Open
Nobody has claimed this yet.
❔ Type: Question
🍰 Component: PowerShell
- Dominant language
- PowerShell
- Stars
- 27k
- Forks
- 2.1k
- PR merge metrics
- No merged PRs in 30d
Description
When I try to launch SSH from PowerShell on a fresh Cmder install I get the following error:
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.
Yet it works fine if I start up cmd, then launch powershell.exe from there, then run ssh.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue by launching PowerShell directly from a fresh Cmder install, then compare it with launching cmd first and running powershell.exe. Inspect the resulting environment and PATH; done when ssh resolves in directly launched PowerShell as it does in the cmd-launched case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100