Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.