I'm using Windows terminal, and recently updated PowerShell 7.3.8(now 7.3.9) as the shell.
Thing can be ensured:
- I had installed openssh,whose path has correctly added to the PATH.
- Openssh can be used successfully, no matter in the powershell of the past or the cmd right now.
YES, INDEED, THAT'S WHAT WEIRD:I could use ssh until I updated pwsh of version 7.3.8, at the same time I can use ssh on cmd of the same Windows Terminal, which means ssh has nothing wrong.
When I use the command ssh
in pwsh, it returns:
The term 'ssh' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
And when I try to print the environment value: echo $env:PATH
it returns:
...C:\Windows\System32\OpenSSH;
How can that be?