Remoting from mac to windows

Tagged: , ,

This topic contains 1 reply, has 1 voice, and was last updated by Profile photo of Dan Franciscus Dan Franciscus 2 months, 2 weeks ago.

  • Author
    Posts
  • #66015
    Profile photo of Dan Franciscus
    Dan Franciscus
    Participant

    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

  • #66018
    Profile photo of Dan Franciscus
    Dan Franciscus
    Participant

    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.