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
Disregard. I was editing the ssh_config on my Mac not the sshd_config.
After fixing that, remoting is working.
You must be logged in to reply to this topic.