Filesystem in User Space

Setting up sshfs

In order to setup sshfs on a debian system, I needed to install the sshfs packages:

sudo apt-get install sshfs fuse-source module-assistant kernel-headers-2.6
sudo module-assistant build fuse
sudo module-assistant install fuse

While building the fuse module I was asked whether I need a seperate group to be able to use the fusermount command and whether I want this group to be removed when the package is removed and so on. I answered all the defaults. Finally I put myself in the group which I created while building the fuse module.

That’s it, then logout and log back in so that the group permissions can take effect. Or use the newgrp command.

To mount the remote filesystem I first created a main directory to hold all my remote mount-points.

mkdir remote_dirs
cd remote_dirs
mkdir server_1 server_2
sshfs user01@server_1:. server_1/
sshfs user01@server_2:. server_2/

If ssh keys are already setup for a password less login then you wont be asked a password otherwise a password prompt will be displayed where you need to enter the remote servers password.

This entry was posted in FLOSS and tagged , , . Bookmark the permalink.