Removing sshd daemon in Cygwin

  1. open Cygwin using “Run As Administrator”:

     cygrunsrv -E sshd 
        
     cygrunsrv -R sshd
    
  2. reboot and verify that you CAN’T connect to your former SSH server. You won’t see “CYGWIN sshd” in services.msc anymore, either.

One reason you might want to disable/remove the sshd daemon is upgrading from 32-bit Cygwin to 64-bit Cygwin

WARNING: This procedure disables SSH access to your PC. You will have to have another means (e.g. physically being at the keyboard or RDP directly on port 3389) to access the PC again!

Tags:

Categories:

Updated: