Mounting a remote drive at a local mount point
Having a local mount point to access the remote host filesystem facilitates read and write data transfer operations. SSH is the common transfer protocol. The sshfs
application uses SSH to enable you to mount a remote filesystem on a local mount point.
Getting ready
sshfs
doesn't come by default with GNU/Linux distributions. Install sshfs
with a package manager. sshfs
is an extension to the FUSE filesystem package that allows users to mount a wide variety of data as if it were a local filesystem. Variants of FUSE are supported on Linux, Unix, Mac OS/X, Windows, and more.
Note
For more information on FUSE, visit its website at http://fuse.sourceforge.net/.
How to do it...
To mount a filesystem location at a remote host to a local mount point:
# sshfs -o allow_otheruser@remotehost:/home/path /mnt/mountpoint Password:
Issue the password when prompted. After the password is accepted, the data at /home/path
on the remote host can be accessed via a local mount...