these are my steps for installation

$chgrp Administrators /var/run
$chgrp Administrators /var/log
$chgrp Administrators /var/empty
$chmod 775 /var/run
$chmod 775 /var/log
*** Query: Enter the value of CYGWIN for the daemon: [] ntsec binmode nodosfilewarning

$ chown cyg_server /var/empty
$ chmod 755 /var/empty

$editrights -a SeTcbPrivilege -u cyg_server
$editrights -a SeAssignPrimaryTokenPrivilege -u cyg_server
$editrights -a SeCreateTokenPrivilege -u cyg_server
$editrights -a SeIncreaseQuotaPrivilege -u cyg_server
$editrights -a SeServiceLogonRight -u cyg_server
$editrights -a SeDenyRemoteInteractiveLogonRight -u cyg_server

$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 664 /var/log/sshd.log
$editrights -l -u cyg_server

the windows event log states

Accepted password for local_user from port 52018 ssh2
Received disconnect from 11: disconnected by user

however for admin accounts it states

Accepted password for admin_user from port 52023 ssh2
error: setreuid 1001: Operation not permitted
Received disconnect from 11: disconnected by user

the ssh terminal always shows:

$ ssh admin_user@
admin_user@'s password:
Last login: Wed Sep 16 15:38:44 2015 from
Connection closed by

and with -v -v -v it ends with

debug1: Offering RSA public key: /home/admin_user/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
Connection closed by

it's hard to believe but the issue was that I used instead of the actual ip address of the physical network interface.

and now it works from either ip address...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.