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.

How to mount a remote directory using ssh to be available same as if it is a local directory?

share|improve this question

marked as duplicate by falconer, Eric Carvalho, karel, Avinash Raj, Florian Diesch Jan 31 '14 at 11:53

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

up vote 15 down vote accepted

First install the module:

sudo apt-get install sshfs

Load it to kernel

sudo modprobe fuse

Setting permissions

sudo adduser maythux fuse

sudo chown root:fuse /dev/fuse

sudo chmod +x /dev/fusermount

Now we’ll create a directory to mount the remote folder in.

I chose to create it in my home directory and call it remoteDir.

mkdir ~/remoteDir

Now I ran the command to mount it(mount on home).

sshfs maythux@192.168.xx.xx:/home/maythuxServ/Mounted ~/remoteDir

Now it should be mounted

cd ~/remoteDir
ls -l 


share|improve this answer
I'm a little confused... in the sshfs command, I think that the mountpoint local directory is named remoteDir, and when I'm on the ssh serever, there is a dir /home/maythuxServ/Mounted that is not mounted locally, and I can not tell, or care, whether it's mounted elsewhere? –  Volker Siegel Nov 23 '14 at 0:56

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