I tried to follow this with my Mac OS X 11, but it doesn't seem to work. For one, when I restart sshd on my mac after adding "Subsystem powershell powershell -sshs -NoLogo -NoProfile" in, I get an error stating "Bad configuration option: subsystem.". If I leave that line out of the ssh_config file and try to "$session = New-PSSession -HostName hostname -UserName username " I get this error:
New-PSSession : The background process reported an error with the following message: The SSH client session has ended with error message: Permission denied, please try
At line:1 char:12
+ $session = New-PSSession -HostName ...
+ CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : 2100,PSSessionOpenFailed