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

  • Want to organize your cloud files? Sign up for a free webinar to see how Dokkio (a new product from PBworks) can help you find, organize, and collaborate on your Drive, Gmail, Dropbox, and Slack files: Weds, May 27 at 2PM Eastern / 11AM Pacific
View
 

SetUpSshdOnCygwin

Page history last edited by David B 11 years, 2 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.