cmderdev / cmderdev/cmder

SSH doesn't work in PowerShell except when powershell.exe launched through CMD

Open
#2,700 15 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.