I had the same problem. The problem for me, at least, was to create the cyg_server user using ssh-host-config. It was created without a home directory and with its shell set to / bin / false. So, I changed the / etc / passwd file for the cyg_server user to map / home / cyg _server (changed from / var / empty) and / bin / false to / bin / bash and created the home directory for the user. Tried to reconnect using user cyg_server and voila.
:
mkdir /home/cyg_server vim /etc/passwd cyg_server:...(bunch of stuff)...:/var/empty:/bin/false
to
cyg_server:...(bunch of stuff)...:/home/cyg_server:/bin/bash
Presumably, cygwin has a usermod command or a synonym that will make this a bit more secure. But I was impatient, and that is what I did. If anyone follows this, pay attention to be extremely careful when editing the / etc / passwd file.
source share