New-PSSession error "subsystem request failed on channel 0" when using SSH key authentication #5945
Labels
Issue-Question
ideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a
Resolution-Answered
The question is answered.
Reproduction Steps
Symptom
NOTE: I'm able to successfully SSH into the system using the
ssh
command line client from Mac.Fix
Make sure your
sshd_config
contains theSubsystem
configuration as documented in the following article:https://docs.microsoft.com/en-us/powershell/scripting/core-powershell/ssh-remoting-in-powershell-core
After modifying the
sshd_config
, you also need to restart the SSH daemon on your Windows instance:Restart-Service -Name sshd
.Closing immediately, as I found the fix. This is being posted purely for community documentation purposes, so others can benefit from my learnings.
The text was updated successfully, but these errors were encountered: