

You can do so with PowerShell by running Restart-Service sshd.

The -sshs option is used to allow PowerShell 7 to run within SSH as a subsystem.For PowerShell 7, add the line: Subsystem powershell c:/progra~1/powershell/7/pwsh.exe -sshs -NoLogo. The command below finds all of the Windows features with a name starting with OpenSSH and installs them so it will install both the client and the server.ģ. If you are connecting from Linux to the Windows Server, you only need the OpenSSH server. If you connecting from the Windows Server to Linux, you only need the OpenSSH client. You can install OpenSSH via PowerShell using the Get-WindowsCapability cmdlet as shown below.ĭepending on if you’re intending your Windows host to be a client and/or a server depends on what Windows feature you should install. OpenSSH is the package that PSRemoting will use to connect to the remote Linux computer. This tutorial will not cover how to do this. Installing PowerShell 7+įirst, install PowerShell 7+. To do that, you’ll need to set up and configure both PowerShell 7+ and OpenSSH.

Setting up Windows (Client) for PSRemoting over SSHįirst up, you need to configure the PSRemoting client (PowerShell) on your Windows client. After the initial setup, some of the rights can be revoked.
