0

On restarting my PC today, few external commands(ssh, findstr) are not working in Windows Terminal. But they do work if I open up a command prompt.

In Windows Terminal I get

C:\>ssh
'ssh' is not recognized as an internal or external command,
operable program or batch file.

On cmd prompt it works

C:\>ssh
usage: ssh [-46xYy] [-B bind_interface]
           [-b bind_address] [-c cipher_spec] [-D [bind_address:]port]
           [-E log_file] [-e escape_char] [-F configfile] [-I pkcs11]
           [-i identity_file] [-J [user@]host[:port]] [-L address]

That means I do have ssh.exe on my PATH

I have tried creating profile in Windows Terminal -

{
    ...
    "name": "remote-ssh",
    "commandline": "ssh user@host"
}

It works for ssh but I'd still want the these commands to work in Terminal.

Already updated to v1.12.10982.0

Adding settings.json as requested. (personal identifiers removed)

Thanks

10
  • Please post the entire json file for your Windows Terminal profile
    – Ramhound
    May 6, 2022 at 18:54
  • SSH works here in Terminal. 3 machines with Terminal. You may need to Repair your Windows install.
    – John
    May 6, 2022 at 19:11
  • Hi @Ramhound, I've added the file.
    – ashishbg
    May 6, 2022 at 19:19
  • @John that's not really a option for me. Thanks though.
    – ashishbg
    May 6, 2022 at 19:19
  • Why is Repair not an option?. I have used Repair Install many times.
    – John
    May 6, 2022 at 19:20

0

You must log in to answer this question.

Browse other questions tagged .