ssh can't recognize $HOME
Window7, set HOME evironment variable to a path.
However, ssh can't use $HOME/.ssh/, and can only use /home/username/.ssh/ under the msys2 install folder.
Could it take $HOME?
FWIW, I think this started to occur with the update to the 2.10.0 runtime, but the OpenSSH 7.6 update happended at almost the same time for me, so I'm not entirely sure.
Symptom: ~/.ssh/config is no longer found, leading to servers being unreachable due to missing configuration settings.
Workaround: cp ~/.ssh/* /home/$USERNAME/.ssh
I have a similar issue. I usually rely on ssh locating .ssh/id_rsa.pub to use my public key to connect to remote server. Now that I changed $HOME to my Windows account's %USERPROFILE%, ssh insisted to look at /home/<username>.
The workaround I had to use is symbol link $HOME/.ssh/ to /home/<username>/.ssh. But this really sucks. It used to work beautifully.
openssh 7.6p1-2
MSYS_NT-10.0 foobar 2.10.0(0.325/5/3) 2018-02-09 15:25 x86_64 Msys
Is there now any other solution than that also naively applied by myself of symlinking $HOME into /home/$USER ? There exporting $HOME is said to solve all problems, but not here.
Prepend env windows to value of db_home: in /etc/nsswitch.conf
# /etc/nsswitch.conf db_home: env windows cygwin desc
https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch-home
As happened here beware that /etc/nsswitch.conf can be reset by a package update