I recently had to mount a system with sshfs and ended up with a error.
Aim was to mount the folder ‘backups’ in the home directory of the user ‘bob’.
1 2 |
/usr/bin/sshfs bob@192.168.1.1:/backups/ /var/my_backups
bob@192.168.1.1:/backups/: No such file or directory |
The error seems confusing at first, but does say exactly what is wrong.
Solution would be using this target path:
1 |
/usr/bin/sshfs bob@192.168.1.1:backups/ /var/my_backups |
As you can see, the first slash of ‘backups’ is gone. This is correct, because after the ‘:’, a absolute path can be given to sshfs for mounting. In my case, i wanted to work relative to the user home directory, so i simply hat do ommit the first slash.
Hope this helps someone.