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.
LFS や依存パッケージが本ブックに示す最新安定バージョンでなかった場合には、BLFS 開発版においては、パッケージのビルドや処理実行が適切に行われないことがあります。
ダウンロード (HTTP): https://github.com/libfuse/sshfs/releases/download/sshfs-3.7.3/sshfs-3.7.3.tar.xz
ダウンロード MD5 sum: f704f0d1800bdb5214030a1603e8c6d6
ダウンロードサイズ: 56 KB
必要ディスク容量: 0.9 MB
概算ビルド時間: less than 0.1 SBU
Fuse-3.16.2, GLib-2.78.3, OpenSSH-9.5p1
docutils-0.20.1 (required to build the man page)
以下のコマンドを実行して Sshfs をビルドします。
mkdir build && cd build && meson setup --prefix=/usr --buildtype=release .. && ninja
このパッケージにテストスイートはありません。
root
ユーザーになって以下を実行します。
ninja install
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 ~/example
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.