BLACK HILL SYSTEMS
Published on BLACK HILL SYSTEMS (http://blackhillsystems.com)

Home > Setting up an SSH Server (sshd)

Setting up an SSH Server (sshd)

published by admin on Sat, 04/11/2015 - 20:25

Install cygwin (http://cygwin.com [1])

  • include openssh and openssl
  • add c:\cygwin\bin to the PATH
  • chmod +r /etc/passwd
  • chmod u+w /etc/passwd
  • chmod +r /etc/group
  • chmod u+w /etc/group
  • chmod 755 /var
  • touch /var/log/sshd.log
  • chmod 663 /var/log/sshd.log

Configure the SSH Daemon

  • ssh-host-config
  • answer yes to yes/no queries
  • set the CYGWIN value equal to ntsec tty
  • answer no if you're asked to use a different name
  • answer yes
  • provide a password for the user
  • net start sshd

Synchronize the users between Windows and cygwin

  • mkpasswd -cl > /etc/passwd
  • mkgroup --local > /etc/group

Source URL: http://blackhillsystems.com/?q=node/42

Links
[1] http://cygwin.com