Unable to determine home directory for remote user

This too worked for me, thanks. This solution is preferable rather than moving the key in another directory, as it allows to share the key with other projects.