There are 2 users on machine#0: user#0 and user#1. I can mount the desired dir from user#0 on machine#0 executing:
sshfs user@hostname:/home/folder /home/folder
The thing is that /home/folder has some-path/user#1 inside, which is home directory for user#1. But when I try to
ssh user1@machine0
After entering password it says
Connection to machine0 closed.
If I switch home of user1 to another, local directory, I have no problems logging in. Why is this happening and how to make this work? Thank you!