Linux mount remote filesystem-sshfs

Published by

Posted on September 02, 2015

While researching a project I was working on at the time. I came across this cool tool that has been around for some time now. The tool is called sshfs
According to Wikipedia
In computing, SSHFS (SSH Filesystem) is a filesystem client to mount and interact with directories and files located on a remote server or workstation over a normal ssh connection.[1] The client interacts with the remote file system via the SSH File Transfer Protocol (SFTP),[2] a network protocol providing file access, file transfer, and file management functionality over any reliable data stream that was designed as an extension of the Secure Shell protocol (SSH) version 2.0.

The current implementation of SSHFS using FUSE is a rewrite of an earlier version. The rewrite was done by Miklos Szeredi, who also wrote FUSE.

———–
Getting this to work on debian took about 2 min. REALLY
apt-get install fuse
apt-get install sshfs

mounting a remote system
mkdir /path/to/folder
sshfs hostname: /path/to/folder

Validation
df
cd into /path/to/folder

unmount
fusermount -u /path/to/folder
———–

Great tool for working with remote files or adding additional space to your environment