Menu

Tree [662514] master /
 History

HTTPS access


File Date Author Commit
 .github 2019-04-30 Nikolaus Rath Nikolaus Rath [c44851] Update issue templates
 compat 2014-02-03 Benjamin Fleischer Benjamin Fleischer [c3d83e] Fix redefinition of struct __local_sem_t
 test 2019-11-27 Nikolaus Rath Nikolaus Rath [e91045] Disable buflimit workaround by default.
 utils 2017-09-20 Nikolaus Rath Nikolaus Rath [949d76] Add support for mounting from /etc/fstab
 .appveyor.yml 2018-08-01 Bill Zissimopoulos Bill Zissimopoulos [d0c5fa] Add AppVeyor CI for Cygwin
 .dir-locals.el 2017-06-19 Nikolaus Rath Nikolaus Rath [5bc9ff] Added .dir-locals.el to setup correct indentati...
 .gitignore 2019-11-23 Nikolaus Rath Nikolaus Rath [242167] Added build/ to gitignore.
 .travis.yml 2019-02-27 Nikolaus Rath Nikolaus Rath [d29921] Travis CI: Use Xenial instead of Trusty.
 AUTHORS 2020-01-03 Nikolaus Rath Nikolaus Rath [a7e103] Released 3.7.0
 COPYING 2011-07-01 Miklos Szeredi Miklos Szeredi [6c1968] Update COPYING
 ChangeLog.rst 2020-01-03 Nikolaus Rath Nikolaus Rath [a7e103] Released 3.7.0
 README.rst 2020-08-10 Nikolaus Rath Nikolaus Rath [a96e52] Remove pointer to professional consulting offers
 cache.c 2019-11-23 Michael Forney Michael Forney [4d8665] Fix some inconsistent whitespace (#192)
 cache.h 2017-06-21 Nikolaus Rath Nikolaus Rath [341464] Switch to libfuse 3.0.
 make_release_tarball.sh 2017-09-20 Nikolaus Rath Nikolaus Rath [7c2550] Don't attempt to remove non-existing file.
 meson.build 2020-01-03 Nikolaus Rath Nikolaus Rath [a7e103] Released 3.7.0
 sshfs.c 2020-09-03 Simon Arlott Simon Arlott [76ffb3] Unset OLDPWD environment variable (#227)
 sshfs.rst 2020-09-04 Junichi Uekawa Junichi Uekawa [662514] Update sshfs.rst (#220)

Read Me

SSHFS

About

SSHFS allows you to mount a remote filesystem using SFTP. Most SSH servers support and enable this SFTP access by default, so SSHFS is very simple to use - there's nothing to do on the server-side.

Development Status

SSHFS is shipped by all major Linux distributions and has been in production use across a wide range of systems for many years. However, at present SSHFS does not have any active, regular contributors, and there are a number of known issues (see the bugtracker). The current maintainer continues to apply pull requests and makes regular releases, but unfortunately has no capacity to do any development beyond addressing high-impact issues. When reporting bugs, please understand that unless you are including a pull request or are reporting a critical issue, you will probably not get a response.

How to use

Once sshfs is installed (see next section) running it is very simple:

sshfs [user@]hostname:[directory] mountpoint

It is recommended to run SSHFS as regular user (not as root). For this to work the mountpoint must be owned by the user. If username is omitted SSHFS will use the local username. If the directory is omitted, SSHFS will mount the (remote) home directory. If you need to enter a password sshfs will ask for it (actually it just runs ssh which ask for the password if needed).

Also many ssh options can be specified (see the manual pages for sftp(1) and ssh_config(5)), including the remote port number (-oport=PORT)

To unmount the filesystem:

fusermount -u mountpoint

On BSD and macOS, to unmount the filesystem:

umount mountpoint

Installation

First, download the latest SSHFS release from https://github.com/libfuse/sshfs/releases. On Linux and BSD, you will also need to install libfuse 3.1.0 or newer. On macOS, you need OSXFUSE instead. Finally, you need the Glib library with development headers (which should be available from your operating system's package manager).

To build and install, we recommend to use Meson (version 0.38 or newer) and Ninja. After extracting the sshfs tarball, create a (temporary) build directory and run Meson:

$ mkdir build; cd build
$ meson ..

Normally, the default build options will work fine. If you nevertheless want to adjust them, you can do so with the mesonconf command:

$ mesonconf                  # list options
$ mesonconf -D strip=true    # set an option

To build, test and install SSHFS, you then use Ninja (running the tests requires the py.test Python module):

$ ninja
$ python3 -m pytest test/    # optional, but recommended
$ sudo ninja install

Getting Help

If you need help, please ask on the <fuse-sshfs@lists.sourceforge.net> mailing list (subscribe at https://lists.sourceforge.net/lists/listinfo/fuse-sshfs).

Please report any bugs on the GitHub issue tracker at https://github.com/libfuse/libfuse/issues.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.