Author Posts

March 10, 2017 at 12:17 am

Hi all,

I am trying to setup remoting from my mac to windows using this example from github which explains how to to do with Ubuntu – https://github.com/PowerShell/PowerShell/tree/master/demos/SSHRemoting.

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
again..
At line:1 char:12
+ $session = New-PSSession -HostName ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : 2100,PSSessionOpenFailed

March 10, 2017 at 4:28 am

Disregard. I was editing the ssh_config on my Mac not the sshd_config.

After fixing that, remoting is working.