9

I'm trying to mount a folder over ssh using sshfs. Evertime I do so I get the error

No such file or directory

My terminal:

user@computer:~$ sshfs [email protected]:/volume1/somedir ~/mnt/somedir
[email protected]'s password: 
[email protected]:/volume1/somedir: No such file or directory

It returns the directory listing, as expected if I try:

ssh [email protected] ls /volume1/somedir

This is Ubuntu 12.04 connecting to a Synology NAS with DS4.1

What am I doing wrong here?

rubo77
  • 32,486
csauve
  • 561
  • 2
  • 4
  • 11

3 Answers3

20

So aparently when connecting to sftp on a Synology, / is the list of shares. So I just have to do:

sshfs [email protected]:/somedir ~/mnt/somedir
csauve
  • 561
  • 2
  • 4
  • 11
3

try

sshfs [email protected]:/remotedir ~/mnt/localdir

where remotedir is dir you normally specify after volume1

or

sshfs [email protected]:/ ~/mnt/localdir
user266573
  • 31
  • 2
0

I had the same error on connecting to a VM in a Debian xen host where I have forwarded every VM ssh port to another port.

All paths were correct, when testing with ssh [email protected] ls. In the end, I noticed, that I mixed up the ports, because I had set a rule to use a certain port in my

~/.ssh/config

that was not used when trying via sshfs

so better add the port to both commands, when testing with

ssh -p<someport> [email protected] ls /volume1/somedir
sshfs -p<someport> [email protected]:/volume1/somedir ~/mnt/somedir
rubo77
  • 32,486