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.
This package is known to build and work properly using an LFS-8.1 platform.
Download (HTTP): https://github.com/libfuse/sshfs/releases/download/sshfs-3.2.0/sshfs-3.2.0.tar.gz
Download MD5 sum: dee189442efb22e08d4f233af8626ce7
Download size: 164 KB
Estimated disk space required: 1.9 MB
Estimated build time: less than 0.1 SBU
Fuse-3.1.1, GLib-2.52.3, and OpenSSH-7.5p1.
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/sshfs
Install Sshfs by running the following commands:
./configure --prefix=/usr && make
This package does not come with a test suite.
Now, as the root
user:
make 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:
fusermount -u ~/example
You can also mount an sshfs
filesystem at boot by adding an entry similar to the following in
the /etc/fstab
file:
[email protected]:/path /media/path fuse.sshfs _netdev,IdentityFile=/home/userid/.ssh/id_rsa 0 0
See man 1 sshfs and man 8 mount.fuse for all available mount options.
Last updated on 2016-08-27 23:14:16 +0200