Unable to start cygwin sshd service

后端 未结 5 426
终归单人心
终归单人心 2021-02-01 16:55

I entered ssh-host-config into the cygwin prompt (started with admin privileges), said yes to privilege separation, new local account sshd, install sshd as a servic

5条回答
  •  感情败类
    2021-02-01 17:42

    I had the same problem and here is the solution that worked for me.

    Solution 1

    Restart the machine after you set the path environment variables to point to Cygwin bin directories and then start the service.

    Solution 2

    1. First add the account that runs the Cygwin sshd demon service to administrators group (this is by default)

    2. Go to your cygwin installation folder (mine is at c:\cygwin64 and yours may differ)

      • add administrators group as full control. remove the property
      • Remove Readonly for your cygwin installation folder so anyone can write into it
    3. Run the cygwin terminal as administrator and remove the service by typing

      cygrunsrv -R sshd
      
    4. Reboot your system

    5. Run the cygwin terminal as administrator and reinstall the service again by typing

      ssh-host-config -y
      
    6. Run the cygwin terminal as administrator and start the service by typing

      net start sshd
      

    Your service now be running!

提交回复
热议问题