Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to use sshfs to share a folder between two of my computers.

I can ssh from the server, and see the folder I want to share. However, when I run sshfs, I get:

david@desktop2:~$sshfs desktop1:~/folder/ ~/Documents/folder/
desktop1:~/folder/: No such file or directory

Desktop2 is running 11.10. Desktop1 is running 10.04.

I ssh from desktop2 to desktop1 and view the folder, and I can use scp to copy a file from one computer to another.

What do I need to do differently for this to work?

share|improve this question
up vote 6 down vote accepted

~ is expanded by the shell. Paths are relative on sshfs, you are currently asking to mount /home/someuser/~/folder from machine desktop1.

Drop the ~/ part and sshfs should find the remote folder relative to the home directory:

sshfs desktop1:folder/ ~/Documents/folder/
share|improve this answer
Thanks.. I just wasted a lot of time to figure this. – Prasanth Dec 19 '13 at 12:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.