![]() Oh, make sure you restart the sshd service after the command completes. I show you a screenshot of the process in the following figure. Go ahead and run the cmdlet and follow the prompts. ![]() Detects the operating system (Windows, macOS, Linux).The RemotingTools module contains a single cmdlet, called Enable-SSHRemoting, that performs the following actions: You can install the module directly from the PowerShell Gallery: Install-Module -Name I suggest you use the Microsoft PowerShell team's wonderful RemotingTools module to simplify configuring SSH-based remoting. Next, set the SSH server service to start automatically, and then start up the service: Set-Service -Name sshd -StartupType 'Automatic' Run the following commands from an elevated console session: Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0Īdd-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0 If you're running Windows 10 build 1809 or later, the client and server tools are included. We need to install OpenSSH on our Windows 10 workstation. ![]() Prepare the Windows 10 system for SSH-based PowerShell remoting
0 Comments
Leave a Reply. |