I have a laptop with windows 8. I'm trying to setup SSH from this laptop to a windows 2012 server via Cygwin64.
I followed the steps as described here.
However, when I am at the step:
ssh-user-config, I get the error:
ERROR: There is no home directory set for you in /etc/passwd.<br> ERROR: Setting $HOME is not sufficient!
In my Cygwin64 installation folder, I see a directory home with a user that is copied from the windows user I'm logged in with (say this user is nifty).
I also see a file
cygwin64/etc/passwd - but in the file my windows user (nifty) is not present.
The only line I see there is:
I have tried to manually add the passwd file, inserting:
I also tried to add:
When googling, the only thing I come up with is try to run this command:
mkpasswd -l -u >> /etc/passwd
I noticed this adds some accounts present in windows (such as the administrators group, system account and the created cyg_server from the step above), but it doesn't help me in letting me execute ssh-user-config.
Can somebody explain me how to proceed?