Thread: How to install Cygwin with sshd?

  1. #1
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545

    Question How to install Cygwin with sshd?

    Hi,
    Does anyone know the minimum number of packages I need to install to get an sshd server running on Cygwin?

    If I install all of Cygwin, I can get it working, but that's almost 17GB.

    I found that in order for other computers to be able to ssh into my Cygwin machine I need to comment out the following line in /etc/hosts.allow
    Code:
    ALL : PARANOID : deny
    But I'm not sure which Cygwin package creates the /etc/hosts.allow file. I tried installing all the NET and WEB packages, but it that didn't create the file.

    Without a /etc/hosts.allow file I can only get ssh working if I connect to localhost.
    "I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008

    "the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010

  2. #2
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    Does anyone know the minimum number of packages I need to install to get an sshd server running on Cygwin?
    O_o

    You should be able to just pick core and `ssh' from network tools, but that does represent the minimum.

    You'll probably want some other stuff (grep/find/gawk/xargs).

    But I'm not sure which Cygwin package creates the /etc/hosts.allow file.
    It is just a dumb text file.

    Create the file from scratch, or "ssh" into a box so you can grab a copy to edit.

    Soma

  3. #3
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    I don't have an answer for you, but I will share my current solution. I use Bitvise SSH Server for windows. Free for personal use. Very configurable.

    One of the settings you can set is the "terminal shell" to use. I use this:
    Code:
    C:\Windows\SysWOW64\cmd.exe /c ""C:\Program Files (x86)\Git\bin\sh.exe" --login -i"
    You could use a MSYS or Cygwin shell if you like. I use it for push'n and pull'n code

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. cygwin
    By cs05pp2 in forum C++ Programming
    Replies: 4
    Last Post: 02-24-2009, 08:18 AM
  2. cygwin sshd weird behavior
    By jEssYcAt in forum Tech Board
    Replies: 6
    Last Post: 05-19-2008, 02:05 PM
  3. G++ and Cygwin
    By osal in forum C++ Programming
    Replies: 4
    Last Post: 03-03-2005, 09:25 PM
  4. How do I use Cygwin?
    By indigo0086 in forum Tech Board
    Replies: 23
    Last Post: 05-13-2004, 05:52 PM
  5. Cygwin
    By pauljones2k in forum Tech Board
    Replies: 20
    Last Post: 12-01-2002, 12:44 PM