Categories

Our Sponsors

Setting up CYGWIN SSH

This article is assuming that you have installed CYGWIN on your Winders environment already.

I had troubles getting SSHD to run on the system and as with SSH it ended up being dumb file and/or directory permissions.

  1. Make sure you have an /etc/password file.
    mkpasswd   -cl   >   /etc/passwd
  2. Make sure you have an /etc/group file.
    # mkgroup -l > /etc/group
  3. Setup the ssh config files.
    # /usr/bin/ssh-host-config
    cygwin_sshd_setup
  4. Fix user permissions
    # chmod  755  /var
    # chmod 664 /var/log/sshd.log
  5. Fix file ownership
    # chown cyg_server /var/empty
    # chown cyg_server /etc/ssh*
  6. Test starting the SSHD service
    # net start sshd
  7. If it doesn’t start consult the log file
    # less /var/log/sshd.log
Share

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Get Adobe Flash playerPlugin by wpburn.com wordpress themes