I've been trying to sort out the Could not create directory issue with openSSH installed via cygwin, and have tried every solution I can find on the internet, but none of them are working...
I've installed cygwin, it appears to work. I installed openSSH, which also appears to work (i can ssh into other machines).
I've put the cygwin bin folder in the path, so i can run ssh fro mthe command line, and that works too. But every time I run it it gives me the error:
Could not create directory '/home/will/.ssh'
The authenticity of host 'blah (111.222.333.444)' can't be established.
ECDSA key fingerprint is SHA256:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.
Are you sure you want to continue connecting (yes/no)?
Why is it trying to use that directory? I have set the env. variable HOME to %USERPROFILE%, it prints the correct location when I echo it, and I also have created the .ssh dir and done the ssh-keygen thing there.
I read somewhere that i need to replace home/will in cygwin/etc/passwd, but I don't have that file. And if I use mkpasswd -l to generate it it does not include me as a user, so there's nothing I can replace. I'm really stumped.
What do I need to do/set to make this work?