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

1 Answer 1

up vote 18 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 

Enjoy

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

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.