Moved once the system to another disk and when connected via SSH saw the following errors:
Could not chdir to home directory /home/user: Permission denied
-bash: /home/user/.bash_profile: Access denied
As it turned out, the errors were caused by incorrect permissions to the /home directory, namely, there were no rights to execute from the group and other users.
To solve the problem, first see what rights are installed on the home directory (must be drwxr-xr-x):
ls -l /
ls -l /home
We will expose the correct:
sudo chmod +x /home
If necessary, we set permissions for the directory of the user you want:
sudo chmod 750 /home/user
sudo chown -R user:user /home/user
Done, in my case the error has disappeared.