Introduction to Sshfs

The Sshfs package contains a filesystem client based on the SSH File Transfer Protocol. This is useful for mounting a remote computer that you have ssh access to as a local filesystem. This allows you to drag and drop files or run shell commands on the remote files as if they were on your local computer.

This package is known to build and work properly using an LFS-8.3 platform.

Package Information

Sshfs Dependencies


Fuse-3.2.5, GLib-2.56.1, and OpenSSH-7.7p1.


docutils-0.14 (required to build the man page)

User Notes:

Installation of Sshfs

If you are building on i686, sshfs needs an extra CFLAGS setting to be defined. This prevents an integer overflow. To do this, run the following command:

if [ $(uname -m) = "i686" ]; then
  export CFLAGS+="-D_FILE_OFFSET_BITS=64";

Install Sshfs by running the following commands:

mkdir build &&
cd    build &&
meson --prefix=/usr .. &&

This package does not come with a test suite.

Now, as the root user:

ninja install

Using Sshfs

To mount an ssh server you need to be able to log into the server. For example, to mount your remote home folder to the local ~/examplepath (the directory must exist and you must have permissions to write to it):

sshfs ~/examplepath

When you've finished work and want to unmount it again:

fusermount3 -u ~/example

You can also mount an sshfs filesystem at boot by adding an entry similar to the following in the /etc/fstab file:

[email protected]:/path /media/path fuse.sshfs _netdev,IdentityFile=/home/userid/.ssh/id_rsa 0 0

See man 1 sshfs and man 8 mount.fuse for all available mount options.


Installed Program: sshfs
Installed Libraries: None
Installed Directories: None

Short Descriptions


mounts an ssh server as a local file system.

Last updated on 2016-08-27 23:14:16 +0200