When I try ssh [IP] openssh warns Could not create directory '/home/local/[my username]/.ssh'.
I do have an .ssh directory, in another path, in my actual home directory, at /home/[myusername]/.ssh.
Why is openssh adding a local to that home path? That path does not exist. I'm on Ubuntu 16.04 my $HOME is set properly, i.e. /home/[my username].
I can't find where openssh is configured to even look for that 'local' path. I've grep'ed for local under /etc/ssh/ which did not return anything.
Update:
getent passwd $USER shows the wrong home path, with the 'local' in the path. Apparently openssh uses the home path as output by that command, instead of the $HOME environment variable to find the home directory. I can't just edit /etc/passwd as $USER comes from an LDAP. Not sure if my IT department can edit my home path in LDAP, is there a way I can tell openssh what home path to use, i.e. $HOME not getent passwd $USER?