View the Most Wanted LQ Wiki articles.
LinuxQuestions.org > Linux Wiki > Sshfs

From LQWiki

Jump to: navigation, search

sshfs is a kernel module that allows a remote file system to be mounted locally, with all transport encrypted through ssh.

Installation

Example: Ubuntu (needs sudo for root privileges)

  • Install the software

sudo apt-get install sshfs

  • Add fuse to /etc/modules

sudo nano /etc/modules

  • Add yourself to the 'fuse' group, then log out and log in again.

sudo adduser your-username fuse

Mounting & Unmounting

  • Create a mountpoint and give yourself ownership

sudo mkdir /media/mount-name sudo chown your-username /media/mount-name

  • Mount the filesystem

sshfs remote-system-name:/remote-folder /media/mount-name

  • Unmount the filesystem

fusermount -u /media/mount-name

External links

Home page (shfs.sourceforge.net)
Ubuntu installation Howto (ubuntuforums.org)

Personal tools