Remoting from mac to windows

Welcome Forums General PowerShell Q&A Remoting from mac to windows

This topic contains 1 reply, has 1 voice, and was last updated by

1 year, 11 months ago.

  • Author
  • #66015

    Points: 25
    Rank: Member

    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 –

    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

  • #66018

    Points: 25
    Rank: Member

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

    After fixing that, remoting is working.

The topic ‘Remoting from mac to windows’ is closed to new replies.