SSHFS

用于连接 SSH 服务器的网络文件系统客户端。「A network filesystem client to connect to SSH servers」

  • Owner: libfuse/sshfs
  • Platform: Linux,Mac,BSD
  • License:: GNU General Public License v2.0
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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

.. _libfuse: http://github.com/libfuse/libfuse
.. _OSXFUSE: https://osxfuse.github.io/
.. _Glib: https://developer.gnome.org/glib/stable/
.. _Meson: http://mesonbuild.com/
.. _Ninja: https://ninja-build.org/
.. _py.test: http://www.pytest.org/

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.

Professional Support

Professional support is offered via Rath Consulting_.

.. _Rath Consulting: http://www.rath-consulting.biz

Main metrics

Overview
Name With Ownerlibfuse/sshfs
Primary LanguageC
Program languageC (Language Count: 5)
Platform
License:GNU General Public License v2.0
所有者活动
Created At2015-12-21 18:47:27
Pushed At2025-03-11 07:52:24
Last Commit At2025-03-08 23:36:06
Release Count38
Last Release Namesshfs-3.7.3 (Posted on 2022-05-26 14:23:41)
First Release Namesshfs_0_1 (Posted on )
用户参与
Stargazers Count6.7k
Watchers Count88
Fork Count512
Commits Count437
Has Issues Enabled
Issues Count238
Issue Open Count39
Pull Requests Count66
Pull Requests Open Count8
Pull Requests Close Count13
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private