#### Beyond Linux® From Scratch (systemd Edition) - Version r13.0-491

### Chapter 5. File Systems and Disk Management

- Prev

  smartmontools-7.5

- Next

  xfsprogs-6.19.0

- Up
- Home

# sshfs-3.7.5

## 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.

### Note

Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.

### Package Information

- Download (HTTP): https://github.com/libfuse/sshfs/releases/download/sshfs-3.7.5/sshfs-3.7.5.tar.xz

- Download MD5 sum: 5d9d4575d5c0b535857f41f723e92c85

- Download size: 52 KB

- Estimated disk space required: 0.9 MB

- Estimated build time: less than 0.1 SBU

### Sshfs Dependencies

#### Required

Fuse-3.18.2, GLib-2.88.0, and OpenSSH-10.3p1.

#### Optional

docutils-0.22.4 (required to build the man page)

## Installation of Sshfs

Install Sshfs by running the following commands:

    mkdir build &&
    cd    build &&

    meson setup --prefix=/usr --buildtype=release .. &&
    ninja

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 example.com:/home/userid ~/examplepath

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

    fusermount3 -u ~/examplepath

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

    userid@example.com:/path /media/path fuse.sshfs _netdev,IdentityFile=/home/userid/.ssh/id_rsa 0 0

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

## Contents

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

### Short Descriptions

sshfs | mounts an ssh server as a local file system

- Prev

  smartmontools-7.5

- Next

  xfsprogs-6.19.0

- Up
- Home