| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Whenever you search in PBworks, Dokkio Sidebar (from the makers of PBworks) will run the same search in your Drive, Dropbox, OneDrive, Gmail, and Slack. Now you can find what you're looking for wherever it lives. Try Dokkio Sidebar for free.

View
 

SetUpSshdOnCygwin

Page history last edited by David B 13 years, 7 months ago

How to set up sshd on cygwin:

  • Install openssh package
  • Install cygrunsrv package
  • Then, at a bash prompt:
    • Right click My Computer, Properties, Advanced, Environment Variables
      • See this illustration (red dots).
      • Click the "New" button to add a new entry to system variables:
      • variable name is CYGWIN
      • variable value is ntsec tty
    • Right click My Computer, Properties, Advanced, Environment Variables
      • See this illustration (green dots).
      • Select the Path variable and click the "Edit" button:
      • append ;c:\cygwin\bin to the end of the variable string.
    • Open a cygwin window (by double clicking the icon), a black screen pops open, type
      • ssh-host-config -y
      • This script will setup sshd as a Windows service,
      • when the script stops and asks you "CYGWIN=",
      • your answer should be ntsec tty
    • While you are still in the (black) cygwin screen, start the sshd service:
      • cygrunsrv --start sshd
  • To stop the sshd service, pop open a cygwin window, type
    • cygrunsrv --stop sshd
  • On the server, in Zone Alarm, set sshd to fully trusted and pass-lock
    • sshd service must be set to "Manual". Then, add a shortcut to startup which runs "cygrunsrv --start sshd". sshd has to start AFTER Zone Alarm in order to work.
    • On the client, in Zone Alarm, set ssh to fully trusted and pass-lock

Comments (0)

You don't have permission to comment on this page.