Windows 10: Error trying to install OpenSSH Server from Powershell

Discus and support Error trying to install OpenSSH Server from Powershell in Windows 10 Customization to solve the problem; I've upgraded to the proper version of Windows and am trying to enable OpenSSH Server on my machine. It's an HP Zbook 17 running the latest version of... Discussion in 'Windows 10 Customization' started by SultericCook, Oct 10, 2019.

  1. Error trying to install OpenSSH Server from Powershell


    I've upgraded to the proper version of Windows and am trying to enable OpenSSH Server on my machine. It's an HP Zbook 17 running the latest version of Windows 10.


    I'm executing this command:



    dism /Online /Add-Capability /CapabilityName:OpenSSH.Server~~~~0.0.1.0



    If I do this from Powershell running Powershell as administrator I get the following error in dism.log:


    2019-10-09 23:40:40, Error DISM DISM Package Manager: PID=5832 TID=21512 Failed finalizing changes. - CDISMPackageManager::Internal_Finalize(hr:0x8024402c)
    2019-10-09 23:40:40, Error DISM DISM Package Manager: PID=5832 TID=21512 Failed processing package changes with session options - CDISMPackageManager:Error trying to install OpenSSH Server from Powershell :processChangesWithOptions(hr:0x8024402c)
    2019-10-09 23:40:40, Error DISM DISM Package Manager: PID=5832 TID=21512 Failed to install capability. - CPackageManagerCLIHandler:Error trying to install OpenSSH Server from Powershell :processCmdLine_AddCapability(hr:0x8024402c)
    2019-10-09 23:40:40, Error DISM DISM Package Manager: PID=5832 TID=21512 Failed while processing command add-capability. - CPackageManagerCLIHandler::ExecuteCmdLine(hr:0x8024402c)
    2019-10-09 23:40:40, Info DISM DISM Package Manager: PID=5832 TID=21512 Further logs for online package and feature related operations can be found at %WINDIR%\logs\CBS\cbs.log - CPackageManagerCLIHandler::ExecuteCmdLine
    2019-10-09 23:40:40, Error DISM DISM.EXE: DISM Package Manager processed the command line but failed. HRESULT=8024402C

    I'm not sure what is causing the error. Any help is appreciated.

    :)
     
    SultericCook, Oct 10, 2019
    #1
  2. Diapolo10 Win User

    Having trouble getting the built-in OpenSSH server to work

    Goal: I'm trying to set up the Windows built-in OpenSSH server (version 0.0.1.0, as I recall that being the latest one) in order to use my desktop PC remotely should I have the need for raw performance when on the road through a Windows
    10 laptop.

    Problem: Despite following
    the official guide
    to the letter, when I try to run "Start-Service sshd" in PowerShell I get this error:

    Code:
        Start-Service : Service 'OpenSSH SSH Server (sshd)' cannot be started due to the following error: Palvelun sshd avaamin    en tietokoneessa . epäonnistui.    At line:1 char:1    + Start-Service sshd    + ~~~~~~~~~~~~~~~~~~        + CategoryInfo          : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service],       ServiceCommandException        + FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand
    If I run the executable without "Start-Service", however, it runs and seemingly waits for connections, but according to the Services tab in Task Manager it's not actually doing anything at all, nor is there an SSH user account associated
    with it.

    What I've tried:

    • Restarting Windows (after every installation)
    • Uninstalling and re-installing both the server and the client (both from PowerShell and through the Settings application)
    • Switched to local account instead of a Microsoft account (suggested on a forum thread, tried the previous steps again)
    • Using an elevated PowerShell instance with admin rights

    System information:

    • Windows 10 Home, version 1809, build 17763.379
    • Hardware configuration:
      • CPU: i9-9900k @ 4.9GHz
      • RAM: 32GB 3200MHz DDR4
      • GPU: Asus ROG Strix GTX 1080
      • Motherboard: Asus PRIME Z390-A, BIOS version 0805

    Let me know if other information is required.
     
    Diapolo10, Oct 10, 2019
    #2
  3. Brink Win User
    Windows Server 2019 Includes OpenSSH


    Source: Windows Server 2019 Includes OpenSSH - Windows Developer Blog
     
    Brink, Oct 10, 2019
    #3
  4. Brink Win User

    Error trying to install OpenSSH Server from Powershell

    Windows Server 2019 Includes OpenSSH

    Source: Windows Server 2019 Includes OpenSSH - Windows Developer Blog
     
    Brink, Oct 10, 2019
    #4
Thema:

Error trying to install OpenSSH Server from Powershell

Loading...
  1. Error trying to install OpenSSH Server from Powershell - Similar Threads - Error trying install

  2. there was an error trying to contact the server

    in Windows 10 Network and Sharing
    there was an error trying to contact the server: Get this error message every time. https://rollwithryan.com/html/error.html?aspxerrorpath=/en-us/Register https://answers.microsoft.com/en-us/windows/forum/all/there-was-an-error-trying-to-contact-the-server/68faa6aa-5da0-4d4a-ae2a-858443267dc6
  3. Having trouble getting the built-in OpenSSH server to work

    in Windows 10 Customization
    Having trouble getting the built-in OpenSSH server to work: Goal: I'm trying to set up the Windows built-in OpenSSH server (version 0.0.1.0, as I recall that being the latest one) in order to use my desktop PC remotely should I have the need for raw performance when on the road through a Windows 10 laptop. Problem: Despite following...
  4. Installation of Xampp server, Hi i'm trying install Xampp server but this problem is...

    in Windows 10 Installation and Upgrade
    Installation of Xampp server, Hi i'm trying install Xampp server but this problem is...: 01:56:09 PM [mysql] Error: MySQL shutdown unexpectedly. 01:56:09 PM [mysql] This may be due to a blocked port, missing dependencies, 01:56:09 PM [mysql] improper privileges, a crash, or a shutdown by another method. 01:56:09 PM [mysql] Press the Logs button to view...
  5. Trying to install Nuget Provider using Powershell and getting this error

    in Windows 10 Installation and Upgrade
    Trying to install Nuget Provider using Powershell and getting this error: Hi All, I am trying to install Nuget Provider in powershell and running below command- Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force' I am getting below error. My meachine is connected to internet and no proxy. I tried setting -...
  6. Windows Server 2019 Includes OpenSSH

    in Windows 10 News
    Windows Server 2019 Includes OpenSSH: The OpenSSH client and server are now available as a supported Feature-on-Demand in Windows Server 2019 and Windows 10 1809! The Win32 port of OpenSSH was first included in the Windows 10 Fall Creators Update and Windows Server 1709 as a pre-release feature. In the Windows 10...
  7. OpenSSH files

    in Windows 10 Network and Sharing
    OpenSSH files: I have disabled a few services under msconfig because my PC was a bit slow. It really helped, and Windows is working well. However, I found Openssh ssh server with Openssh server files, which I had never installed. I wonder, if it is a virus or the files that come along with...
  8. sql server install error

    in Windows 10 Software and Apps
    sql server install error: I get the error message of "Version string portion was too short or too long." I've uninstalled all previous versions of SQL and removed any references to .net framework. Windows10-64bit, I5-3GHZ, 16GB ram How do I get past this install error?...
  9. Trying to run Powershell script to install a program but it doesnt start the installation

    in Windows 10 Installation and Upgrade
    Trying to run Powershell script to install a program but it doesnt start the installation: Hi Team, I have written a powershell script to run the installation in a remote machine. However the installation seems to be running in task manager on remote machine but it is not happening or progressing. Can you help me here?...
  10. Microsoft adds OpenSSH support to PowerShell

    in Windows 10 News
    Microsoft adds OpenSSH support to PowerShell: Believe it or not, Microsoft is working on supporting OpenSSH. Yes, Microsoft is getting ready to support one of the mainstays of BSD, Linux, and Unix system administration. This is less surprising than it sounds. The days when Windows and Linux users were at each others'...