You are here

Setting up an SSH Server (sshd)

Install cygwin (http://cygwin.com)

  • 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

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer