I have a Windows 10 Pro machine that I can ssh into (OpenSSH Server is installed/running) as cmd. I want to have the shell as powershell.exe (not the default of cmd.exe).
I tried setting the following in C:\ProgramData\ssh\sshd per this article, followed by Restart-Service sshd, but this doesn't work:
Subsystem powershell c:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe -sshs -NoLogo -NoProfile
Nor does this work:
Subsystem powershell C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -sshs -NoLogo -NoProfile
I have confirmed C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe to be the correct location of PowerShell.
How can I get the shell to be PowerShell for sshing into a Windows host?