concept SSH in category powershell

appears as: SSH
Learn PowerShell in a Month of Lunches

This is an excerpt from Manning's book Learn PowerShell in a Month of Lunches.

  • The command to execute over SSH:
    help Invoke-Command –Parameter hostname
    Or the command to execute over the legacy Windows protocol:
    help Invoke-Command –Parameter computername
  • PSRP can operate entirely over SSH, making it easy to route through firewalls if necessary (because that protocol uses a single port to communicate). Microsoft has ported OpenSSH to Windows so you can even use this to remote into Windows.

    Setting up PSRP over SSH on Windows

    You may want to setup PSRP over SSH on any Windows machine you have PowerShell Core installed on. We are not going to go into the details on how to set this up, but the instructions are available in Microsoft’s documentation. Here is the link:

    Next, we need to install the module that enable PSRP over SSH:

    Install-Module EnableSSHRemoting

    Then run the command to enable PRSP over SSH: