shell user ssh home directory problem
I created a (non-chrooted) shell user and when i try to connect via ssh it tries to create the .ssh folder for the known_hosts file in my web folder, not in the home folder. Has anyone had this issue before and knows how to fix it?
web1@test:/var/www/clients/client1/web1/web$ git pull
Could not create directory '/var/www/clients/client1/web1/.ssh'.
The authenticity of host 'github.com (192.30.253.112)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)? yes
Failed to add the host to the list of known hosts (/var/www/clients/client1/web1/.ssh/known_hosts).
Already up-to-date.
web1@test:/var/www/clients/client1/web1/web$ ssh git@github.com
Could not create directory '/var/www/clients/client1/web1/.ssh'.
web1@test:/var/www/clients/client1/web1/web$ echo $HOME
/var/www/clients/client1/web1/home/test