|
| 1 | +# SSHFS |
| 2 | + |
| 3 | + |
| 4 | +## About |
| 5 | + |
| 6 | +SSHFS allows you to mount a remote filesystem using SFTP. Most SSH |
| 7 | +servers support and enable this SFTP access by default, so SSHFS is |
| 8 | +very simple to use - there's nothing to do on the server-side. |
| 9 | + |
| 10 | + |
| 11 | +## Development Status |
| 12 | + |
| 13 | + |
| 14 | +SSHFS is shipped by all major Linux distributions and has been in |
| 15 | +production use across a wide range of systems for many years. However, |
| 16 | +at present SSHFS does not have any active, regular contributors, and |
| 17 | +there are a number of known issues (see the [bugtracker](https://github.com/deadbeefsociety/sshfs/issues)). The current |
| 18 | +maintainer continues to apply pull requests and makes regular |
| 19 | +releases, but unfortunately has no capacity to do any development |
| 20 | +beyond addressing high-impact issues. When reporting bugs, please |
| 21 | +understand that unless you are including a pull request or are |
| 22 | +reporting a critical issue, you will probably not get a response. |
| 23 | + |
| 24 | + |
| 25 | +## How to use |
| 26 | + |
| 27 | + |
| 28 | +Once sshfs is installed (see next section) running it is very simple: |
| 29 | + |
| 30 | +``` |
| 31 | +sshfs [user@]hostname:[directory] mountpoint |
| 32 | +``` |
| 33 | + |
| 34 | +It is recommended to run SSHFS as regular user (not as root). For |
| 35 | +this to work the mountpoint must be owned by the user. If username is |
| 36 | +omitted SSHFS will use the local username. If the directory is |
| 37 | +omitted, SSHFS will mount the (remote) home directory. If you need to |
| 38 | +enter a password sshfs will ask for it (actually it just runs ssh |
| 39 | +which asks for the password if needed). |
| 40 | + |
| 41 | +Also many ssh options can be specified (see the manual pages for |
| 42 | +*sftp(1)* and *ssh_config(5)*), including the remote port number |
| 43 | +(`-oport=PORT`) |
| 44 | + |
| 45 | +To unmount the filesystem: |
| 46 | + |
| 47 | +``` |
| 48 | +fusermount -u mountpoint |
| 49 | +``` |
| 50 | + |
| 51 | +On BSD and macOS, to unmount the filesystem: |
| 52 | + |
| 53 | +``` |
| 54 | +umount mountpoint |
| 55 | +``` |
| 56 | + |
| 57 | +## Installation |
| 58 | + |
| 59 | + |
| 60 | +First, download the latest SSHFS release from |
| 61 | +https://github.com/deadbeefsociety/sshfs/releases. You also need [libfuse](http://github.com/libfuse/libfuse) 3.1.0 or newer (or a |
| 62 | +similar library that provides a libfuse3 compatible interface for your operating |
| 63 | +system). Finally, you need the [Glib](https://developer.gnome.org/glib/stable/) library with development headers (which should be |
| 64 | +available from your operating system's package manager). |
| 65 | + |
| 66 | +To build and install, we recommend to use [Meson](http://mesonbuild.com/) (version 0.38 or |
| 67 | +newer) and [Ninja](https://ninja-build.org/). After extracting the sshfs tarball, create a |
| 68 | +(temporary) build directory and run Meson: |
| 69 | + |
| 70 | +``` |
| 71 | +$ mkdir build; cd build |
| 72 | +$ meson .. |
| 73 | +``` |
| 74 | + |
| 75 | +Normally, the default build options will work fine. If you |
| 76 | +nevertheless want to adjust them, you can do so with the *mesonconf* |
| 77 | +command: |
| 78 | + |
| 79 | +``` |
| 80 | +$ mesonconf # list options |
| 81 | +$ mesonconf -D strip=true # set an option |
| 82 | +``` |
| 83 | + |
| 84 | +To build, test and install SSHFS, you then use Ninja (running the |
| 85 | +tests requires the [py.test](http://www.pytest.org/) Python module): |
| 86 | + |
| 87 | +``` |
| 88 | +$ ninja |
| 89 | +$ python3 -m pytest test/ # optional, but recommended |
| 90 | +$ sudo ninja install |
| 91 | +``` |
| 92 | + |
| 93 | +## Getting Help |
| 94 | + |
| 95 | + |
| 96 | +If you need help, please ask on the <[email protected]> |
| 97 | +mailing list (subscribe at |
| 98 | +https://lists.sourceforge.net/lists/listinfo/fuse-sshfs). |
| 99 | + |
| 100 | +Please report any bugs on the GitHub issue tracker at |
| 101 | +https://github.com/deadbeefsociety/sshfs/issues. |
| 102 | + |
| 103 | +## Packaging Status |
| 104 | + |
| 105 | + |
| 106 | +<a href="https://repology.org/project/fusefs:sshfs/versions"> |
| 107 | + <img src="https://repology.org/badge/vertical-allrepos/fusefs:sshfs.svg" alt="Packaging status" > |
| 108 | +</a> |
0 commit comments